【求助】请高手指点这段代码有误逻辑错误
请高手指点这段代码有误逻辑错误:# include <stdio.h>
# include <string.h>
struct People
{
int age;
char color;
char name[50];
};
void inPut(struct People *);
void outPut(struct People *);
int main(void)
{
struct People * p;
inPut(p);
outPut(p);
printf("%d\n",(*p).age);
return 0;
}
void inPut(struct People * pe)
{
pe->age = 12;
pe->color = 'b';
strcpy(pe->name,"奥多姆");
}
void outPut(struct People * pe)
{
printf("%d %c %s\n",pe->age,pe->color,pe->name);
}
/*
总结:该程序在VC6.0中运行时报错
*/