以下程序段的输出结果是_____。 char s[20]=“gooddog!”, *sp=s; sp=sp +2; sp=“to”; puts(s);
gooddog!
举一反三
- char s[80],*sp="HELLO!";sp=strcpy(s,sp);s[0]='h';puts(sp);运行结果:________
- 以下程序运行后的输出结果是【1】。 #include #include void main() {char s[20]=”goodgood!”,*sp=s; sp=sp+2; sp=”to”;puts(s); }
- 以下程序运行后的输出结果是 。#include <string.h>#include <stdio.h>main(){char s[20]=”goodgood!”,*sp=s;sp=sp+2;sp=’to”;puts(s);}
- 下面程序段的输出结果为( )。char s[20]="Hello!",*sp=s;s[2]='\0';puts(sp);
- 下面程序段的运行结果是( )。chars[80],*sp="HELLO!";sp=strcpy(s,sp);s[0]='h';puts(sp);
内容
- 0
中国大学MOOC: 下面程序段的输出结果为( )。char s[20]=Hello!,*sp=s;s[2]=;puts(sp);
- 1
下列语句的输出结果是______。 char s[20]="aaaa",*sp=s; puts(strcat(sp,"AAAAA"));
- 2
7 以下程序运行后的输出结果是【1】。(如需表述回车换行,请使用中文“回车”表达)#include#includevoid main(){char s[20]="goodgood!",*sp=s;sp=sp+2; sp="to";puts(s);}
- 3
下列程序运行时的输出结果是 。#include[stdio.h]#include[string.h]int main(){ char s[80],*sp="hello!"; sp=strcpy(s,sp); s[0]='H'; puts(sp); return 0;}
- 4
char s[80], *sp = HELLO!”; sp = strcpy(s, sp); s[0] = ‘h’; puts(sp);