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;
}

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести