πŸ“Š C++
Q. What happens if the following program is run in C and C++?
Code:
#include<stdio.h>
int main() 
{ 
   display();
}  
int display() 
{ 
   printf("Hello World!"); 
   return 0;  
}
  • (A) Error in C and C++
  • (B) Warning in C and C++
  • (C) Error in C++ but warning in C
  • (D) Error in C but warning in C++
πŸ’¬ Discuss
βœ… Correct Answer: (C) Error in C++ but warning in C

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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