下列程序输出的结果是( )。 include fun1(char a,char b) {char c;c=a;a=b;b=c;} fun2 下列程序输出的结果是( )。 #include<stdio.h> fun1(char a,char b) {char c;c=a;a=b;b=c;} fun2 (char*a,char b) {char c;c=*a;*a=b;b=c;} fun3(char*a,char*b) {char c;c=*a;*a=*b;*b=c;} void main() { char a,b; a='A';b='B'; fun1 (a,b);putchar(a);putchar(b); a='A';b='B'; fun2 (a,b);putchar(a);putchar(b); a='A';b='B'; fun3 (a,b);putchar(a);putchar(b); putchar('\n'); }A.BABBABB.ABBBBAC.ABBABAD.ABABBA
下列程序输出的结果是( )。 include fun1(char a,char b) {char c;c=a;a=b;b=c;} fun2
下列程序输出的结果是( )。 #include<stdio.h> fun1(char a,char b) {char c;c=a;a=b;b=c;} fun2 (char*a,char b) {char c;c=*a;*a=b;b=c;} fun3(char*a,char*b) {char c;c=*a;*a=*b;*b=c;} void main() { char a,b; a='A';b='B'; fun1 (a,b);putchar(a);putchar(b); a='A';b='B'; fun2 (&a,b);putchar(a);putchar(b); a='A';b='B'; fun3 (&a,&b);putchar(a);putchar(b); putchar('\n'); }
A.BABBAB
B.ABBBBA
C.ABBABA
D.ABABBA
相关考题:
有以下程序void fun2(char a,char b) {printf("%c%c",a,b);}char a='A',b='B';void fun1(){ a='C' ; b='D'; }main(){ fun1( );printf("%c%c",a,b);fun2('E','F');}程序的运行结果是A)CDEFB)ABEFC)ABCDD)CDAB
阅读下面程序段,则执行后输出的结果是#include "stdio.h"main(){ char fun(char,int);char a=′A′;int b=13;a=fun(a,b);putchar(a);}char fun(char a,int b){char k;k=a+b;return k;}A.AB.MC.ND.L
下列程序的输出结果是______。 include include using namespace std; voi 下列程序的输出结果是______。include<iostream.h>include<string.h>using namespace std;void fun(const char*s,char C) {c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<ch;return 0;}
下列程序执行的输出结果是()。inClUdemain(){char a[2][4]; strcpy(a,"are");strcpy(a[ 下列程序执行的输出结果是( )。 #inClUde<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a[1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.
有以下程序 void fun2 (char a,char b) {printf("%c%c",a,b);} char a='A',b='B'; void fun1(){ a='C'; b='D'; } main() { fun1(); printf("%c%c",a,b); fun2 ('E','F'); } 程序的运行结果是______。A.CDEFB.ABEFC.ABCDD.CDAB
下述程序的输出结果是()。includevoid main(){char a=3,b=1;char c=a^b 下述程序的输出结果是( )。 #include<stdio.h> void main() {char a=3,b=1; char c=a^b<<2; printf("%d",C; }A.1B.7C.3D.2
阅读下面程序: include void funl(char a,char b) { char c; c=a;a=b;b=C; } void f 阅读下面程序:include<iostream.h>void funl(char a,char b){char c;c=a;a=b;b=C;}void fun2(char a,char b){char c;c=a;a=b;b=c;}void fun3(char a,char b){char c;c=a;a=b;b=C;}void main(){char a,b;a='A';b='B';funl(a,b);cout<<a<<b;a='A';b='B';fun2(a,b);cout<<a<<b;a='A';b='B';fun3(a,b);cout<<a<<b;}则该程序的输出为【 】。
下列程序的输出结果是______。 includef(char 8s){char *p=s;while(*p!='\0')p++;retur 下列程序的输出结果是______。# include<stdio.h>f(char 8s){ char *p=s; while(*p!='\0')p++; return(p-s);}main(){ printf("%d\n",f("ABCDEF"));}A.3B.6C.8D.0
下面程序的输出结果是( )。 include main() {static char a[]="china"; char*ptr=a; whi 下面程序的输出结果是( )。 include<stdio.h> main() {static char a[]="china"; char*ptr=a; while(*ptr) {printf("%c",*ptr-32); ptr++; } }
下列程序输出的结果是()。includesub1(char a,char b){char c:c=a:a=b:b=c; }sub2(char 下列程序输出的结果是( )。 #include<stdio.h> sub1(char a,char b) {char c:c=a:a=b:b=c; } sub2(char*a,char b) {char c:c=*a;”a=b;b=c;} sub3(char*a,char*b) {char c;c=*a;”a=*b;*b=c;} void main() { char a,b; a='A';b='B':sub1(a,b);putchar(a):putchar(b): a='A';b='B'; sub2(a,b);putchar(a);putchar(b); a='A';b='B'; sub3(a,b);putchar(a);putchar(b); putchar('\n'); }A.ABABABB.ABBBBAC.ABBABAD.ABABBA
有以下程序: include void funl (char * p){char * q; q=p; while( *q! ='\0') } (*q) 有以下程序: #include <stdio.h>void funl (char * p){ char * q; q=p; while( *q! ='\0') } (*q) ++;q++;}mains( ){ char a[ ] = { "Program" } , * p; p = a[3]; fun1 (p); printf("% s \n" ,a);}程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program
下列程序执行的输出结果是()。 include main() {char a[2][4];strcpy(a,"are");strcpy( 下列程序执行的输出结果是( )。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a [1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.
以下程序的输出结果是【 】。includeincludechar*fun(char*0{ char *p--t;retur 以下程序的输出结果是【 】。include <stdio.h>include <string.h>char *fun(char *0{ char *p--t;return (p+strlen(t)/2);}main(){ char *str="abcdefgh";str=ftm(str);puts(str);}
下列程序的输出结果是【】。 include include using namespace std; void fun(c 下列程序的输出结果是【 】。include<iostream>include<cstring>using namespace std;void fun(const char *s,char c){c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<ch;return 0;}
以下程序的输出结果是【】。 include main() {struct stru {int a; float b; char d[4]; } 以下程序的输出结果是【 】。include<stdio.h>main(){ struct stru{ int a;float b;char d[4];};printf("%d\n",sizeof(struct stru));}
以下程序运行后,输出结果是______。includess(char*s){char *p=s; while(*.p)p++; retu 以下程序运行后,输出结果是______。#include<stdio.h>ss (char *s){ char *p=s; while(*.p)p++; return(p-s);}main(){ char *a="abded"; int i; i=ss((A); print ("%d\n",i);}A.8B.7C.6D.5
阅读下面程序: include void fun1(char a,char b) { char c; c=a;a=b;b=c; } void f 阅读下面程序:include<iostream.h>void fun1(char a,char b){char c;c=a;a=b;b=c;}void fun2(chara,charb){char c;c=a;a=b;b=c;}void main(){char a,b;a='x';b='y';fun1(a,b);cout<<a<<b;a='x';b='y';fun2(a,b);cout<<a<<b;}则该程序的输出为______。
下列程序的输出结果是()。includeincludemain(){char a[]="\n123\\";printf 下列程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() { char a[]="\n123\\"; printf("%d,%d\n",strlen(a),sizeof(a)); }A.5,6B.5,5C.6,6D.6,5
下列程序输出的结果是()。includesub1(char a,char b){char c;c=a;a=b;b=c:}sub2(char* 下列程序输出的结果是( )。 #include<stdio.h> sub1(char a,char b) {char c;c=a;a=b;b=c:} sub2(char*a,charb) {charc;c=*a;”a=b:b=c;} sub3(char*a,char*b) {char c;c=*a;”a=*b;*b=c:} void main() { char a,b; a='A';b='B';sub1(a,b);putchar(a);pA.ABABABB.ABBBBAC.ABBABAD.ABABBA
下列程序输出的结果是()。includeun1(char a,char b){char c;c=a;a=b;b=c;}fun2(char*a 下列程序输出的结果是( )。 #include<stdio.h> un1(char a,char b){char c;c=a;a=b;b=c;} fun2(char*a,char b){char c;c=*a;*a=b;b=c;} fun3(char*2,char*b){charc;c=*a;*a=*b;*b=c;} void main() { char a,b; a='A';b='B';funl(a,b);putchar(a);putchar(b);A.BABBABB.ABBBBAC.ABBABAD.ABABBA
下列程序的输出结果是()。 include main() { char a[]= {'a','b','c','d','e','f,'\0'} 下列程序的输出结果是( )。 #include<stdio.h> main() { char a[]= {'a','b','c','d','e','f,'\0'}; int i,j; i=sizeof(a); j=strlen(a); printf("%d,%d",i,j); }A.7,7B.7,6C.6,6D.6,7
下列程序的输出结果是()。 include include main() {char a[]="\n123\\";pr 下列程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() { char a[]="\n123\\"; printf ("%d,%d\n",strlen(a),sizeof(a)); }A.5,6B.5,5C.6,6D.6,5
下列程序输出的结果是()。includefun1(char a,char b){char c;c=a;a=b;b=c;}fun2(char* 下列程序输出的结果是( )。 #include<stdio.h> fun1(char a,char b){char c;c=a;a=b;b=c;} fun2(char*a,char b){char c;c=*a;*a=b;b=c;} fun3(char*a,char*b){char c;c=*a;*a=*b;*b=c;} void main() { char a,b; a='A';b='B';fun1(a,b);putchar(a);putchar(b); a='A';b='B';fun2(a,b);putchar(a);putchar(b); a='A';b='B';fun3(a,b);putchar(a);putchar(b); putchar('\n'); } A) B)C) D)A.BABBABB.ABBBBAC.ABBABAD.ABABBA
下列程序输出的结果是()。includesubl(char a,char b) {char c;c=a;a=b;b=c; }sub2(cha 下列程序输出的结果是( )。 #include<stdio.h> subl(char a,char b) {char c;c=a;a=b;b=c; } sub2(char*a,char b) {char c;c=*a;*a=b;b=c;} sub3(char*a,char*b) { char c;c=*a;*a=*b;*b=c; } void main() { char a,b; a='A';b='B';subl(a,b);putchar(a);putchar(b); a='A';b='B';sub2(a,b);putchar(a);putchar(b); a='A';b='B';sub3(a,b);putchar(a);putchar(b); putchar('\n'); }A.BABBABB.ABBBBAC.ABBABAD.ABABBA
下面程序输出的结果是()。includemain(){char *a="1234";fun(a);printf("\n");}fun(cha 下面程序输出的结果是( )。 #include<stdio.h> main() { char *a="1234"; fun(a); printf("\n"); } fun(char *s) { char t; if(*s) { t=*S++;fun(s);} else return; if(t!='\0') putchar(t); }A.1234B.4321C.1324D.4231
以下程序的输出结果是【 】。includeincludechar*fun(char*t){ char *p=t;retur 以下程序的输出结果是【 】。include <stdio.h>include <string.h>char *fun(char *t){ char *p=t;return (p+strlen(t)/2);}main(){ char *str="abcdefgh";str=ftm(str);puts(str);}
单选题有以下程序#include void fun1(char *p){ char *q; q=p; while(*q!='\0') { (*q)++; q++; } }main(){ char a[]={Program},*p; p=a[3]; fun1(p); printf(%s,a); }程序执行后的输出结果是( )。AProhsbnBPrphsbnCProgsbnDProgram