选择题 15.  有以下程序:
    #include<stdio.h>
    main()
    {  int x=0x9;
    printf("%c\n",'A'+x);
    }
    程序运行后的输出结果是______。
【正确答案】 B
【答案解析】 将x=0x9(十六进制)转换为十进制,得x=9,因此printf("%c\n",'A'+9),打印格式要求是%c,因此需要从字符A,按字母顺序向后偏移9含位置,可得结果为J。故答案为选项B。