123456
struct A { static int x; // it iis a declaration only }; int A::x; // it is a definition
1234567891011121314
class A { public: static void setx(int n){x=n;} private: static int x; }; int A::x; int main() { A::setx(7); }