-
What is the output of this program?
#include
using namespace std;
void fun()
void fun()
{
cout<<"Inteview Mania";
}
int main()
{
fun();
return 0;
}
-
- Garbage value
- Inteview Mania
- Runtime Error
- Compilation Error
- None of these
Correct Option: D
We have to use the semicolon to declare the function in line 3. If we did means, the program will execute.