#include <iostream> struct A { A() { std::cout << "A"; } ~A() { std::cout << "~A"; } }; int main() { A *a = (A *) operator new(sizeof *a); delete a; }
~A
A~A
A
operator new()
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment