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