πŸ“Š C++
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;
}
  • (A) Hello World!
  • (B) Hello World!Hello World!
  • (C) Compilation error.
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compilation error.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
188
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
90%
Success Rate