A
Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
void display()
void display()
{
cout << "Hello World!";
}
int main()
{
display();
return 0;
}
using namespace std;
void display()
void display()
{
cout << "Hello World!";
}
int main()
{
display();
return 0;
}
- Correct Answer - Option(C)
- Views: 17
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.