C打印系统整型,字符型等所占位数

C语言代码:

 

 

#include<stdio.h>

int main(void)
{ 
	
	printf("Type int has a size of %u bytes.\n",sizeof(int));
	printf("Type char has a size of %u bytes.\n",sizeof(char));
	printf("Tyep long has a size of %u bytes.\n",sizeof(long));
	printf("Type double has a size of %u    bytes.\n",sizeof(double));
        getchar();
	return 0;
}
 

 

 

你可能感兴趣的:(打印)