0
How do we make this code output 5, using the scoreptr?
int score = 5; int *scorePtr; scorePtr = &score; cout << scorePtr << endl; //Outputs "0x29fee8"
1 ответ
+ 1
cout << *scorePtr << endl;
int score = 5; int *scorePtr; scorePtr = &score; cout << scorePtr << endl; //Outputs "0x29fee8"