πŸ“Š C++
Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
void display(double  f)
{
  cout << f << endl;
}
void display(int i)
{
  cout << i << endl;
}
int main(void)
{
  display(3);
  display(28.99);
  return 0;
}
  • (A) 28.99
  • (B) 3
  • (C) Both A and B are true.
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both A and B are true.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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