|
发表于 2010-5-19 01:56:43
|
显示全部楼层
测试一下:
- /*
- * sizeof.c - test if gcc support sizeof function.
- */
- #include <stdio.h>
- #include <stdlib.h>
- int main (void)
- {
- printf("sizeof(int) = %d\n", sizeof(int));
- return 0;
- }
复制代码
运行结果是:
sizeof(int) = 4
GCC version 4.4.4 (Debian 4.4.4.-1) |
|