我不知道是否typedef和#define在同一个Ç?
typedef
#define
c macros typedef c-preprocessor
我很想知道typedef究竟是如何工作的.
typedef struct example identifier; identifier x;
在上面的语句中,'identifier'只是在代码中用'struct example'替换(像字符串替换这样的东西)?如果不是,typedef在这做什么?
请指教!
c c++ syntax
c ×2
c++ ×1
c-preprocessor ×1
macros ×1
syntax ×1
typedef ×1