why that im having different output that it was supposed to be in the example? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why that im having different output that it was supposed to be in the example?

6th Feb 2017, 8:22 AM
Mark Esteban
Mark Esteban - avatar
4 Answers
+ 5
you will get the memory address of where 5 is stored on your pc. is that the output that you expect?
6th Feb 2017, 9:17 AM
jay
jay - avatar
+ 4
whats the example, what it is the expected output and what output are you getting?
6th Feb 2017, 9:02 AM
jay
jay - avatar
0
int score = 5; cout<<&score<<endl;
6th Feb 2017, 9:14 AM
Mark Esteban
Mark Esteban - avatar
0
yes.. thank you
6th Feb 2017, 9:18 AM
Mark Esteban
Mark Esteban - avatar