In what scope is a struct member identifier put?

前端 未结 4 1764
南方客
南方客 2021-01-18 10:25

The C spec says

There are four kinds of scopes: function, file, block, and function prototype.

Now if I do the following outside any

4条回答
  •  再見小時候
    2021-01-18 11:09

    I think the scope it refers to in this case is A. You refer to the member by SomeA.x, where SomeA is of type A.

提交回复
热议问题