以下程序段运行后的输出结果是()。chars[]=”rstuv”;printf(“%c”,*s+2);
A: 出错
B: 字符t的ASCII值
C: tuv
D: t
A: 出错
B: 字符t的ASCII值
C: tuv
D: t
D
举一反三
- 有以下程序 # include<stdio .h> main() { char s[」=”rstuv"; printf(”%c\n”,*s+2); } 程序运行后的输出结果是
- 以下程序段运行后输出结果是( )。 chars[]="info\0mis"; printf("%d
- 以下程序段的输出结果是chars[]="\\141\141abc\t";printf("%d\n",strlen(s)); A: A.9 B: B.12 C: C.13 D: D.14
- 以下程序段运行后输出结果是( )。chars[]="info\0mis";printf("%d",strlen(s)); A: 4 B: 5 C: 8 D: 9
- 数字字符0的ASCII值为48,若有以下程序main(){ ...t;,b-a);}程序运行后的输出结果是
内容
- 0
以下程序段的输出结果是________.chars[ ]="an apple";printf("%d\n",strlen(s)); A: 7 B: 8 C: 9 D: 10
- 1
下面程序段的运行结果是( )。char *s="abcde";s+=2;printf("%d",s); A: cde B: 字符′c′ C: 字符′c′的地址 D: 字符′c′的ASCII码值
- 2
下面程序段的运行 结果是_____。char *s = "abcde";s+=2;printf("%d",*s); A: cde B: 字符c的ASCII码值 C: 字符c的地址 D: 字符c
- 3
数字字符0的ASCII值为48,若有以下程序 main() { char a='1',b='2'; printf("%c,",b++); printf("%d ",b-a); } 程序运行后的输出结果是
- 4
有以下程序main(){chars[]="159",*p;p=s;printf("%c",*p++);printf("%c",*p++);}程序运行后的输出结果是()