0

How do we make this code output 5, using the scoreptr?

int score = 5; int *scorePtr; scorePtr = &score; cout << scorePtr << endl; //Outputs "0x29fee8"

15th Dec 2016, 8:54 AM
Tarique Shams
Tarique Shams - avatar
1 Resposta
+ 1
cout << *scorePtr << endl;
15th Dec 2016, 10:53 AM
Max_N
Max_N - avatar