πŸ“Š C++
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);
}
  • (A) Error in C and C++
  • (B) Error in C and success in C++
  • (C) Error in C++ and success in C
  • (D) Display “Hello World!” twice in C and C++
πŸ’¬ Discuss
βœ… Correct Answer: (A) Error in C and C++

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
183
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
90%
Success Rate