首页 > 试题广场 >

#include void fun(...

[填空题]
#include <iostream.h>
void fun(int *a, int *b) {
    int *k;
    k = a;
    a = b;
    b = k;
}
void main(void) {
    int a = 3, b = 6, *x = &a, *y = &b;
    fun(x, y);
    cout << a << "," << b << endl;
}


输出:1
为什么输出没有空格但答案有空格?
发表于 2022-08-04 21:52:13 回复(3)