c语言 Typeof声明新类型名字的各种写法
时间: 2024-05-31 08:07:55 浏览: 66
typeof_common.zip_Boost_boost vc6_msc.dll_typeof
1. typedef int newType;
2. typedef struct student { char name[20]; int age; } newType;
3. typedef enum { JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC } newType;
4. typedef char* newType;
5. typedef int (*newType)(int, int);
6. typedef union { int num; char ch; } newType;
阅读全文