以下程序的輸出結果是( ) # include 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;} main() { char 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); } ①BABBAB ②ABBBBA ③ BABABA ④ BAABBA
①BABBAB 形參和實參的關系題。以後代碼排版下,看著好累的