Vidyalelo
C++ Programming · Q69

Introduction to C++

Programming · C++ Programming · question 69

Q69

What happens if the following program is executed in C and C++? #include void main() printf("Hello World");

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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board