char s[20] = “abcd”; char *sp = s; sp++; puts(strcat(sp, “ABCD”));
举一反三
- 以下程序的运行结果是______。#include<stdio.h>#include<string.h>int main( ){char s[20] = "abcd" ;char *sp = s ;sp++ ;puts( strcat( sp , "ABCD" ) ) ;return 0 ;}
- 下列语句的输出结果是______。 char s[20]="aaaa",*sp=s; puts(strcat(sp,"AAAAA"));
- char s[80], *sp = HELLO!”; sp = strcpy(s, sp); s[0] = ‘h’; puts(sp);
- 以下程序的运行结果是____。[br][/br]#include[br][/br]#include[br][/br]intmain()[br][/br]{[br][/br]chars[20]="abcd";[br][/br]char*sp=s;[br][/br]sp++;[br][/br]puts(strcat(sp,"ABCD"));[br][/br]return0;[br][/br]}
- 下面程序段的输出结果为( )。char s[20]="Hello!",*sp=s;s[2]='\0';puts(sp);