What is special about structs?

前端 未结 4 434
走了就别回头了
走了就别回头了 2021-01-30 16:03

I know that in C we cannot return an array from a function, but a pointer to an array. But I want to know what is the special thing about structs that makes them re

4条回答
  •  庸人自扰
    2021-01-30 16:23

    Structs have data members public by default so it is possible in case of struct to access data in main but not in case of class. So , the struct wrapping is valid.

提交回复
热议问题