一、代码
#include <stdio.h> typedef int myInt; void main(){ myInt x=1; printf("%d",x); }
结果:
总结:typedef并不是创建新的类型,而是重命名而已