格式符输出的简单问题
int a=-1;printf("%x,%o,%d",a,a,a);
我想问下输出的结果为什么是
ffff,177777,-1
特别是中间的177777很是不明白啊请高手指点下!
2010-10-18 09:28

2010-10-18 09:32
2010-10-19 19:53
程序代码:#include <stdio.h>
main()
{
int a;
scanf("%d",&a);
printf("%o\n",a);
getch();
}这样就OK了!
2010-10-20 11:11