分类: IT业界
2014-11-24 11:11:45
/*
NAME: TEST
AUTHOR: DDDDD
DATE : 2014-11-24
MODIFY: 2014-11-24 10:23
*/
#include
int main()
{
int a,b,c;
a = 25; //十进制
b = 025; //以0开头的是八进制
c = 0x25; //以0x开头的是十六进制
printf("a = %d, b =%d, c = %d\n",a,b,c);
return 0;
}
如图: