C++ Functions Quiz - Question 3

Last Updated :
Discuss
Comments

What is the output of the below program?

C++
void display() { 
  cout << "Hello, World!"; 
}

int main()
{
    display();
    return 0;
}

Hello

World

Hello, World!

Error

Share your thoughts in the comments
Article Tags :