Programming 01

馃煝聽諑铡謤摘崭謧诈盏崭謧斩 22

曰諡斩展 寨湛蘸站斋 乍寨謤铡斩斋斩謮
#include <iostream>
void foo(int* x) {
   x = new int(0);
}

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