有如下程序 #include main() { int x = 0x13; printf(“%d”, x+1); } 程序运行后的输出结果是( ) A:12 B:14 C:20 D:13 答案: 20 有如下程序 #include main() { int x = 0x13; printf(“%d”, x+1); } 程序运行后的输出结果是( ) A:12 B:14 C:20 D:13 答案: 20 2021-10-19 9
设有定义: int n = 1234; double x = 3.1411; 则语句 printf(“%3d,%1.3f”, n, x); 的输出结果是( ) A:1234,3.142 B:1234,3.141 C:123,3 设有定义: int n = 1234; double x = 3.1411; 则语句 printf(“%3d,%1.3f”, n, x); 的输出结果是( ) A:1234,3.142 B:1234,3.141 C:123,3 2021-10-19 4
有以下程序 #include main() { int a=0,b=0; / 给a赋值 a=10; b=20; 给b赋值 / printf(“a+b=%d”,a+b); / 输出计算结果 / 有以下程序 #include main() { int a=0,b=0; / 给a赋值 a=10; b=20; 给b赋值 / printf(“a+b=%d”,a+b); / 输出计算结果 / 2021-10-19 11