#include <stdio.h>
int main(void)
{
printf("Size of int pointer: %lu\n", (unsigned long)sizeof(int*));
printf("Size of char pointer: %lu\n", (unsigned long)sizeof(char*));
printf("Size of short pointer: %lu\n", (unsigned long)sizeof(short*));
printf("Size of long pointer: %lu\n", (unsigned long)sizeof(long*));
printf("Size of float pointer: %lu\n", (unsigned long)sizeof(float*));
printf("Size of double pointer: %lu\n", (unsigned long)sizeof(double*));
return 0;
}
/*
run:
Size of int pointer: 8
Size of char pointer: 8
Size of short pointer: 8
Size of long pointer: 8
Size of float pointer: 8
Size of double pointer: 8
*/