为什么不能写typedef static int s32?

写typedef int s32就可以,但是写成typedef static int s32就报错,报错提示语法错误,typedef和static不能连用吗?

typedef是存储类的关键字,和auto、static、register一样是存储类关键字,所以在使用typedef时不能再出现其他存储类的关键字;

static关键字是对数据存储方式的说明,注明其为“静态”数据,并不算在“类型”里面,这与const关键字是不同的。