A

Admin • 833K Points
Coach

Q. What happens if the following program is run in C and C++?

Code:
#include<stdio.h>
int main()
{
display();
}
int display()
{
printf("Hello World!");
return 0;
}
  • (A) Error in C and C++
  • (B) Warning in C and C++
  • (C) Error in C++ but warning in C
  • (D) Error in C but warning in C++
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.