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;
}
β
Correct Answer: (C)
Error in C++ but warning in C