下列程序输出的结果是()。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

下列程序输出的结果是()。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.ABABAB

B.ABBBBA

C.ABBABA

D.ABABBA


相关考题:

下列程序的输出结果是______。 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 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;} { char a,b; a='A' ;b='B'; sub3 (a, b) ;putchar (a) ;putchar (b); a='A';b='B';sub2(a,b);putchar(a);prtchar(b); a='A';b='B';sub1(a,b);putchar(a) ;putchar(b); }A.BABBABB.ABBBBAC.BABABAD.BAABBA

以下程序的输出结果是【 】。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);}

以下程序运行后,输出结果是______。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

下列程序输出的结果是()。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

以下程序运行后,输出结果是()includess(char*s){char*p=s; while(*p)p++ return(p-s); 以下程序运行后,输出结果是( ) #include<stdio.h> ss(char *s) { char*p=s; while(*p) p++ return(p-s); } main() { char *a="abded" int i; i=ss(a) ; printf("%d\n",i); }A.8B.7C.6D.5

有以下程序includesub1(char a,char B) {char c;c=a;a=b;b=c;}sub2(char *a,char B) { 有以下程序 #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;} main() { cha,a,b; a='A';b='B';sub3(a,b) putchar(a);putchar(b); a='A';b='B';sub2(a,b) ;putchar(a);putchar(b); a='A';b='B';sub1(a,b) ;putchar(a);putchar(b); } 程序运行后的输出结果是( )A.BABBABB.ABBBBAC.BABABAD.BAABBA

下列程序输出的结果是()。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

以下程序的输出结果是【 】。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);}