有如下程序 #include main() { int x = 0x13; printf("%d\n", x+1); } 程序运行后的输出结果是( )。

admin2020-06-16  26

问题 有如下程序
#include
main()
{
int x = 0x13;
printf("%d\n", x+1);
}
程序运行后的输出结果是( )。

选项 A、20
B、14
C、12
D、13

答案A

解析 由两个双引号""引起来的是一个字符串常量,而字符变量只能存放单个字符常量,答案选A)。
转载请注明原文地址:https://kaotiyun.com/show/ZpCp777K
0

相关试题推荐
随机试题
最新回复(0)