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
#include <stdio.h>
void main()
{
printf("Hello World");
}
You must be Logged in to update hint/solution