自己在网上自学了两天c语言 求各位大神帮忙看一下。

日期:2021-10-26 19:20:19 人气:1

自己在网上自学了两天c语言 求各位大神帮忙看一下。

c里没有2进制的前缀,如果什么都不加就是10进制,0打头就是8进制,0x打头就是16进制
#include <stdio.h>
int main() {
int a = 2;
int b = 0174;
int c = 0x2d9c;
printf("a = %d, b = %d, c = %d\n", a ,b ,c);
return 0;
}
另外学任何语言都不要在网上学
    A+
热门评论