<<< What is a local variable? | Index | Binary numbers >>> |
#include <cstdio> int main() { int x = 4; printf( "x is stored at %p\n", &x ); return 0; }
Q: Why does the %p format display the memory address in hex format?
A: It's the way engineers typically refer to memory addresses.
Okay... Let's try to elaborate a little more on this answer.
<<< What is a local variable? | Index | Binary numbers >>> |