🟢 Վարժություն 23
Ի՞նչ կտպվի էկրանին։
#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
Sign in to your account