• 2021-04-14
    以下程序的输出结果是
    #include"stdio.h"
    sub1(chara,charb){charc;c=a;a=b;b=c;}
    sub2(char*a,charb){charc;c=*a;*a=b;b=c;}
    sub3(char*a,char*b){charc;c=*a;*a=*b;*b=c;}
    main()
    {chara,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);
    }