+ 2
Why when you enter another value for the score variable you end up with the same address
4 Respuestas
+ 6
Given you understand Spy's statement, moving to integer pointer example.
int *score = new int;
*score = 5;
*score = 7;
The address of both score and what it points to are fixed. The only thing changing is the value stored in the address returned by the new.
+ 4
Show the code
+ 1
Thanks a lot everyone