xiaozhu2007
全部博文(103)
2008年(77)
2007年(26)
xiaobo20
cynthia
浪花小雨
GLM89122
Mr_Ran
sun2011y
feel_hyq
tinnal
竟成007
lovebing
分类: C/C++
2008-03-13 14:02:54
在windows平台下:#include <stdio.h>#include <stdlib.h>int main(int argc, char **argv){ int n, i; __int64 res; scanf("%d", &n); while(n){ res = 1; for(i = 2; i <= n; i++){ res = res * i; } break; } //printf("sizeof long int = %d bytes\n", sizeof(res)); printf("result = %I64d\n", res); exit(0);}在linux平台下: <<< ... >>> printf("a = %Ld\n", a); /* for GNU */ printf("a = %lld\n", a); /* for GNU another way */ <<< ... >>>
上一篇:volatile 和 sig_atomic_t
下一篇:prob 2368 DFS算法
登录 注册