Q. What happens if the following program is run in C and C++?
Code:
#include <stdio.h>
void f(void)
{
printf("Hello World!");
}
void main()
{
f();
f(5);
}
β
Correct Answer: (A)
Error in C and C++