测试一些C特性

This commit is contained in:
nonstriater
2014-05-18 13:02:39 +08:00
parent 7fc950aa3b
commit 98ed4336bc
33 changed files with 618 additions and 47 deletions
+12
View File
@@ -0,0 +1,12 @@
#include <stdio.h>
int main()
{
int i;
i = 10;
printf("i : %d\n",i);
printf("sizeof(i++) is: %d\n",sizeof(i++));
printf("i : %d\n",i);
return 0;
}
// sizeof()不会对传入的表达式计算 ,所以后面的输入还是i:10