|
|
Pointers |
|
char |
1 byte (8 bits) |
short |
2 bytes |
long |
4 bytes |
float |
4 bytes |
double |
8 bytes |
pointer |
4 bytes |
< Show a diagram of the memory space for a more physical representation of how a pointer operates >
int i = 1;
printf ( "The value of i is %d and the address of i is 0x%x\n", i,
(unsigned int) &i );
results in something like
The value of i is 1 and the address of i is 0xbffff7b4