What is the output of below C++ program?
static int si;
Base::si = 101;
compile time error, we can't access variable si, with out creating object for that class.
it prints 101. you can access static variables with out creating object for that class.
Back To Top