首页 试题详情
单选题

#include "stdio.h" void main( ) { char str[80]; scanf("%s",str); insert(str); } insert(char s[]) { int i; for(i=strlen(s);i>0;i--) { s[2*i]=s[i]; s[2*i-1]=‘ ‘; } printf("%s",s); } 如果输入的字符串是abcd, 则程序的运行结果是 ( ) 。

A a b c d

Ba c b d

Ca b c d

Dd c b a

正确答案:A (备注:此答案有误)

相似试题

  • 单选题

    以下程序输出结果是 。 #include stdio.h void f (); main() {int a; for(a=1;a

    答案解析

  • 单选题

    下列程序的输出结果是 ( )。#include stdio.h main() { int i,a=0,b=0; for(i=1;i

    答案解析

  • 单选题

    有以下程序#include stdio.h#include string.hvoid main( ){ char s1[50]={some string *},s2[]={test};printf(%s n, strcat(s1,s2));}执行后的输出结果是( )。

    答案解析

  • 单选题

    有以下程序#include stdio.hmain(){ int a,b,c=246;a=c/100%9;b=(-1)&&(-1);printf(%d,%d n,a,b);}输出结果是()。

    答案解析

热门题库