表明上typedef char *name和#define name char*一样,仔细分析还是有一些区别:
typedef char * name1
#define name2 char*
int main()
{
name1 n1,n2; //=char *n1, char *n2
name2 n3,n4; //=char *n3, char n4
}
表明上typedef char *name和#define name char*一样,仔细分析还是有一些区别:
typedef char * name1
#define name2 char*
int main()
{
name1 n1,n2; //=char *n1, char *n2
name2 n3,n4; //=char *n3, char n4
}