C语言 - sizeof() 各种返回值 实例讲解

// 谁能帮我注释下,留言即可,thanks!

#include 
#include 
#include 

int main(void)
{
	int a[4];

	printf("%d\n", sizeof(a));				//16
	printf("%d\n", sizeof(int [4]));		//16
	printf("%d\n", sizeof(int * [4]));		//16
	printf("%d\n", sizeof(int (*) [4]));	//4
	printf("%d\n", sizeof(int (*)));		//4

	printf("\n");
	system("pause");
	return 0;
}


你可能感兴趣的:(C语言_基础知识)