class cl { static int x; public : static int y; static void f2(); void f1(); }; int cl::x=1; int cl::y=2; void cl::f1() { x++; y++; // 1 } void cl::f2() { x++; y++; //2 } void f3() { cl::x++; cl::y++; // 3 }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment