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