Fundamental Programming Variables & Scope Beginner
Q What is the output of this C++ code? int f(){ static int c = 0; return ++c; } int main(){ f(); f(); cout
  • A 1
  • C 3
  • D Compilation error
Leave a Comment