以下程序的运行结果是______。#include<stdio.h>#include<string.h>int main( ){char s[20] = "abcd" ;char *sp = s ;sp++ ;puts( strcat( sp , "ABCD" ) ) ;return 0 ;}
举一反三
- 以下程序运行后的输出结果是 。#include <string.h>#include <stdio.h>main(){char s[20]=”goodgood!”,*sp=s;sp=sp+2;sp=’to”;puts(s);}
- char s[20] = “abcd”; char *sp = s; sp++; puts(strcat(sp, “ABCD”));
- 以下程序运行后的输出结果是【1】。 #include #include void main() {char s[20]=”goodgood!”,*sp=s; sp=sp+2; sp=”to”;puts(s); }
- 以下程序的输出结果是______ 。#include #include int main(void) { char s[10], sp[] = "HELLO"; strcpy(s, sp); s[0] = 'h'; s[6] = '!'; printf("%s\n", s); return 0;}
- 以下程序的运行结果是____。[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]}