struct static member meaning/definition [closed]
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)?..why cant I initialize?) Also....what If I had a static struct member in a class? static member of a class / struct is a member that is not specific for a concrete instance of that class / struct . Apart from some special cases, it must almost always be explicitly initialized in one of