[펌] 기억해야 하지만 가끔 햇갈린다. 이거~!

sizeof(char) = 1
sizeof(short) = 2
sizeof(int) = 4
sizeof(long) = 4
sizeof(unsigned char) = 1
sizeof(unsigned short) = 2
sizeof(unsigned int) = 4
sizeof(unsigned long) = 4
sizeof(float) = 4
sizeof(double) = 8
sizeof(void *) = 4
sizeof(char *) = 4
sizeof(short *) = 4
sizeof(int *) = 4
sizeof(long *) = 4
sizeof(unsigned char *) = 4
sizeof(unsigned short *) = 4
sizeof(unsigned int *) = 4
sizeof(unsigned long *) = 4
sizeof(float *) = 4
sizeof(double *) = 4
sizeof(int (*)()) = 4

댓글 남기기