Is “typedef” in between the type and the alias standard-conformant?

前端 未结 5 624
春和景丽
春和景丽 2021-02-06 20:59

I stumbled upon some code where the typedef keyword is in between the type and the alias name like in

int typedef INT;

It compiles

5条回答
  •  感动是毒
    2021-02-06 21:49

    typedef int INT
    

    RightWay to use typedef

    Wherever you use INT it will be replace by int datatype

    This main purpose is to only for long data string to simple value but in this case you can use normal int itself

    You can relay on just for test purpose use debugging you can understand very well

提交回复
热议问题