int *p;
int *q;
void fun(int *a, int n, int *odd, int *even);
fun(a,n,p,q);
这样用为什么报错为:p和q没有初始化啊?
int *p;
int *q;
void fun(int *a, int n, int *odd, int *even);
fun(a,n,p,q);
这样用为什么报错为:p和q没有初始化啊?
= =。你就写这么点代码,来问为什么错。也不知道你这全不全。如果只有这么多,报错,肯定是你的a,n没定义吧。编译通不过吧。