typedef
结构体
typedef struct{
char *Sname;
int age;
}structName;
枚举
typedef enum{
oneEnum=1,
twoEnum,
}enumName;
函数指针宏定义
typedef int (*p)(int ,int);
// int (*p)(int ,int)=sum;
p s=sum;
int end = s(12,12);
printf("end=%d",end);
int sum(int a,int b){
return a+b;
}
指向函数的指针
struct person
{
int age;
};
typedef struct person * per;
typedef struct{
int age;
}*personPoint;
struct person ps={23};
per ppp=&ps;
personPoint perp=&ps;