+ 1

Questions regarding output

int score = 5; cout << &score << endl; please anyone tell how answer come "0*29fee8"

9th Jul 2018, 1:13 PM
Hemendra Mehta
Hemendra Mehta - avatar
3 Respuestas
+ 1
Thats the memory address of score
9th Jul 2018, 1:22 PM
TurtleShell
TurtleShell - avatar
+ 1
that's creating or reason behind that
9th Jul 2018, 1:25 PM
Hemendra Mehta
Hemendra Mehta - avatar
+ 1
Yeah you have the reference operator (&) before score, if you get rid of it 5 will display on the console
9th Jul 2018, 1:29 PM
TurtleShell
TurtleShell - avatar