如下语句printf("%c\n",′B′+40);在执行后的输出结果是 【9】 。
第1题:
设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。
A.1
B.0
C.4
D.3
第2题:
执行语句printf(“%u\n”,+12345)的输出结果是( )。
A.12345
B.0
C.-1
D.非定值
第3题:
若有定义char a[15]="Windows-9x";执行语句printf("%s",a+8);后的输出结果是___________。
第4题:
执行语句printf("%u\n",+12345)的输出结果是( )。
A.12345
B.0
C.-1
D.非定值
第5题:
【判断题】有程序段如下: int year=2000; printf("%sn",year%(year%100?4:400)?"NO":"YES"); 执行上面的printf()语句后,输出结果是NO:YES
A.Y.是
B.N.否