🟢 Վարժություն 21

Ի՞նչ կտպվի էկրանին։
#include <iostream>
int* foo() {
   int* x = new int(10);
   return x;
}

int main() {
   int y = *(foo());
   std::cout << y;
}
 
To check your solution you need to sign in
Sign in to continue