【单选题】语句 printf("ch=%d,ch=%c
",65,65); 的输出结果是_______
A. 65,65 B. ch=65,ch=65 C. ch=65,ch=A D. ch=A,ch=A
",65,65); 的输出结果是_______
A. 65,65 B. ch=65,ch=65 C. ch=65,ch=A D. ch=A,ch=A
举一反三
- 执行以下程序,输出结果是_____。#include<;stdio.h>;int main(){ char ch;int k;ch='a';k=65;printf("%d,%c,%d,%c",ch,ch,k,k);return 0;} A: a,a,65,65 B: 97,a,65,A C: 97,a,65,65 D: a,A,65,65
- 【单选题】下面定义字符型变量ch的语句不正确的是()。 A. char ch=‘X2A’; B. char ch="c"; C. char ch=65; D. char ch=NULL;
- 已知字符A的ACSII码值为65,以下语句的输出结果是______。 char ch='B'; printf("%c %d\n",ch,ch);
- 已知字符A的ACSII码值为65,以下语句的输出结果是: char ch=’B’; printf(“%c,%d\n”,ch,ch);
- The 8859-1 character code for the uppercase letter A is 65. Which of these code fragments declare and initialize a variable of type char with this value?() A: char ch = 65; B: char ch = ’¥65’; C: char ch = ’¥0041’; D: char ch = ’A’; E: char ch = "A";