P41 unix cc 支持哪些数据类型?
2013-01-31 15:09
141 查看
#include <stdio.h> int main(void) { unsigned int un = 3000000000; short end = 200; long big = 65537; long long verybig = 12345678908642; printf("un = %u and not %d\n", un, un); printf("end = %hd and %d\n", end, end); printf("big = %ld and not %hd\n", big, big); printf("verybig = %lld and not %ld\n", verybig, verybig); printf("%d, %d\n", sizeof(int), sizeof(short)); return 0; }
int为32位和short为16位的系统,期望结果:
un = 3000000000 and not -1294967296
end = 200 and 200
big = 65537 and not 1
verybig = 12345678908642 and not 1942899938
P46 limits.h?
相关文章推荐
- Java支持的数据类型有哪些?什么是自动拆装箱?
- 【Java面试题-004】Java支持哪些数据类型?什么是Autoboxing和Unboxing?
- redis支持哪些数据类型
- Java支持的数据类型有哪些,什么是自动拆装箱?
- java支持的数据类型有哪些?什么是自动拆装箱?
- java和c语言的switch语句支持哪些数据类型
- Java中switch都可以支持哪些数据类型
- [每日一问]---Java中支持的数据类型有哪些?什么是自动装箱和拆箱?
- Mysql支持的数据类型有哪些?
- Mysql支持的数据类型(总结)
- JS中都有哪些数据类型呢?
- 使用的 SQL Server 版本不支持数据类型“datetime2”解决办法
- c++question 004 c++基本数据类型有哪些?
- java.sql.SQLException: ORA-03115: 不支持的网络数据类型或表示法
- 对text数据类型不支持代码页转换 从: 1252 到: 936
- Java学习--switch的数据类型只能是哪些?
- SQL Server支持的数据类型
- hive中对复杂数据类型的支持
- MYSQL支持的数据类型——字符串类型
- mysql数据类型有哪些