How do we make this code output 5, using the scoreptr? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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