struct static member meaning/definition [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . struct a{static int z;}l; (a is declared at file scope) I cant initialize the z using a initializer list. what does a static struct member mean? does z(name) have external linkage and public access as well? (I thought it meant you give it file scope and group it under a(and has public access through a object)?.