+ 1
Memory mapping of variable
I want to find the memory mapping of char, but it didn't work? https://code.sololearn.com/cd4sn3dEzO80/?ref=app
2 Answers
0
you should cast the address to a void * to make it print what you expect:
cout << static_cast<void*>(&a);
0
u need to cast to void*