What is the right way to typedef a type and the same type's pointer?

后端 未结 6 1197
我寻月下人不归
我寻月下人不归 2020-12-07 03:30

What is the right way to typedef a type and the same type\'s pointer? Here is what I mean. Should I do this:

typedef unsigned int delay;
typedef unsigned int         


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 03:48

    The right way is not to do it. Hiding the fact that something is a pointer is commonly seen as bad style.

提交回复
热议问题