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;
}
β
Correct Answer: (C)
Both A and B are true.