Đặng Thị Thúy Hằng
New member
What happens if the following program is executed in C and C++?
A. Error in both C and C++
B. Successful run in both C and C++
C. Error in C and successful execution in C++
D. Error in C++ and successful execution in C
Code:
#include <stdio.h>
void main()
{
printf("Hello World");
}
B. Successful run in both C and C++
C. Error in C and successful execution in C++
D. Error in C++ and successful execution in C