A
Q. What happens if the following program is run in C and C++?
Code:
#include <stdio.h>
void f(void)
{
printf("Hello World!");
}
void main()
{
f();
f(5);
}
void f(void)
{
printf("Hello World!");
}
void main()
{
f();
f(5);
}
- Correct Answer - Option(A)
- Views: 8
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.