#include<iostream> using namespace std; class GfG { public: static int i; GfG() { i = 1; }; }; int main() { GfG obj1; obj1.i =2; // prints value of i cout << obj1.i<< endl; return 0; } Output: /tmp/ccYksI9L.o: In function `main': ce4ff58a7885e6c58baf8c11130...