结构体内定义函数怎么编译报错
#include<stdio.h>struct stu
{
int id;
int age;
int gd;
int exit(void);
};
struct stu s;
struct stu *p;
p=&s;
int main()
{
printf("%d",p->exit);
return 0;
}
int exit(void)
{
int k=20;
return k;
}
field `exit' declared as a function