typedef struct clarity

前端 未结 6 1644
悲&欢浪女
悲&欢浪女 2021-01-03 11:31

I am getting confused with typedef can anyone transcribe this to a normal composition? of structures? I really don\'t want to handle typedef since it\'s gets me confuse

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 12:04

    If you don't want to use typedef you can always use full type name:

    Instead of:

    StackNode sn;
    

    You would use:

    struct stackNode sn;
    

    Instead of:

    StackNodePtr snp;
    

    You would use:

    struct stackNode *snp;
    

    The declarations are exactly the same.

提交回复
热议问题