the size of the basic type in bytes
--------------------------------------------------------------------
sizeof(bool) is: 1 sizeof(char) is: 1 sizeof(int) is: 4
sizeof(long) is: 4 sizeof(float) is: 4 sizeof(double) is: 8
---------------------------------------------------------------------
the size of the pointer
int *p = NULL;
sizeof(p) is: 4
----------------------------------------------------------------------
the size of Array
int a[10]; int* q = a;
sizeof(a) is: 40
sizeof(a[0]) is: 4
sizeof(q) is: 4
-----------------------------------------------------------------------
char* str1 = "my boy"; len = sizeof(str1);
结果是len = 4,但是char str[7] = "my boy";//注意char str[6] = "my boy";是错误的&#x