Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1301253
  • 博文数量: 548
  • 博客积分: 7597
  • 博客等级: 少将
  • 技术积分: 4224
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-15 13:21
个人简介

嵌入式软件工程师&&太极拳

文章分类

全部博文(548)

文章存档

2014年(10)

2013年(76)

2012年(175)

2011年(287)

1.c

分类:

2011-02-20 20:03:46

#include 

int main(void)
{
	/* 4
	   1
	   2
	   4
	   4
	   8
	   4
	   2
	   1
	   4
	   */
	printf("int = %d \n", sizeof(int));
	printf("char = %d \n", sizeof(char));
	printf("short = %d \n", sizeof(short));
	printf("long = %d \n", sizeof(long));
	printf("float = %d \n", sizeof(float));
	printf("double = %d \n", sizeof(double));
	printf("unsigned int = %d \n", sizeof(unsigned int));
	printf("unsigned short = %d \n", sizeof(unsigned short));
	printf("unsigned char = %d \n", sizeof(unsigned char));
	printf("unsigned long = %d \n", sizeof(unsigned long));
//	printf("unsigned double = %d \n", sizeof(unsigned double));
//	printf("unsigned float = %d \n", sizeof(unsigned float));

	printf("long long = %d \n", sizeof(long long));
	printf("long double = %d \n", sizeof(long double));
//	printf("long float = %d \n", sizeof(long float));
	return 0;
}
阅读(751) | 评论(0) | 转发(0) |
0

上一篇:链接脚本

下一篇:编译

给主人留下些什么吧!~~