What will be printed when the following code is executed?
#include <iostream>

struct A {
  A() { std::cout << "A"; }
  ~A() { std::cout << "~A"; }
};

int main() {
  A *a = (A *) operator new(sizeof *a);
  delete a;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes