C Pointer size
Example
#include <stdio.h>
/*from w ww. jav a 2 s .co m*/
int main(void)
{
int number = 0;
int *pointer = NULL;
number = 10;
pointer = &number;
printf("pointer's size: %d bytes", sizeof(pointer)); /* Output the size */
return 0;
}
The code above generates the following result.