Const on struct

前端 未结 0 1618
日久生厌
日久生厌 2021-02-04 11:56

What is the difference between doing the following two things?

const typedef struct Person {
    char*  name;
    int    id
}

And doing:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题