f函数出错请看看这程序错在哪里谢谢
#include"stdio.h"#include"malloc.h"
void f(struct arr *j)
{
}
int main(void)
{
struct arr
{
int a;
struct arr *p;
};
struct arr *z,*x;
z=(struct arr*)malloc(sizeof(struct arr));
z->a=1,z->p=x;
f(&z);
return 0;
}
2013-04-18 18:57
2013-04-18 22:10