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