• Courses
  • Tutorials
  • Practice
  • Contests
Switch to Dark Mode

C++ Functions Quiz - Question 3

Last Updated : Jan 13, 2025
Discuss
Comments

What is the output of the below program?

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

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

Hello

B

World

C

Hello, World!

D

Error

Share your thoughts in the comments
Article Tags :