Live quiz

cpp - Part 10

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C++ code? #include <iostream> class Test { public: void fun(); }; static void Test::fun() { std::cout<<"fun() is static"; } int main() { Test::fun(); return 0; }

  • A
  • B
  • C
  • D