以下程序的运行结果是()。char *p="teacher";p=p+3;printf("%s",p);
A: cher
B: acher
C: eacher
D: teacher
A: cher
B: acher
C: eacher
D: teacher
A
举一反三
- 【单选题】以下程序的运行结果是( )。[br][/br] char *p="teacher"; [br][/br] [br][/br] p=p+3; [br][/br] [br][/br] printf("%s",p); A: che B: ache C: eache D: teache
- 以下程序的运行结果是 ___ char *p="tomorrow"; p=p+2; printf("%s",p);
- 以下程序的运行结果是voidfun(char*p){char*q=p;while...);printf("%s",st);}
- 在以下程序段的空白处填入(),能够正确输出teacher。 #include main() {char *p[3]={"student","teacher","classroom"}; printf("%s", ); }
- 下面程序段的运行结果是()注意输出结果的格式#includevoidmain(){char*p=”abcdefgh”;p+=3;printf("%s",p);}
内容
- 0
在以下程序段的空白处填入(),能够正确输出teacher。 #include<stdio.h> main() {char *p[3]={"student","teacher","classroom"}; printf("%s", ); }
- 1
下面程序段的运行结果是( )。 char str[]=”ABC”, *p=str; printf(“%d ”,*(p+3));
- 2
下面程序的运行结果是______ 。char str[]=”ABCDEFGGH”,*p=str; printf(“%c\n”,*(p+3));
- 3
以下程序段的执行结果是____。char a[]="abcdefg",*p;p=a;*(p+3)+=2;printf("ch=%c\n",*(p+5));
- 4
下列程序段的运行结果是_____。Char a='m' ,*p ;P=&a;Printf("%c",*p);