Output of following C++ program?
#include <iostream>
class Test
{
public:
void fun();
};
static void Test::fun()
{
std::cout<<"fun() is static\n";
}
int main()
{
Test::fun();
return 0;
}
Contributed by
Pravasi Meet
fun() is static
Empty Screen
Compiler Error
This question is part of this quiz :
C++ Static Keyword