Question OOP-POLY-0020
HardWhat is the output of this code?
#include <iostream>
using namespace std;
void f(int) { cout << "int "; }
void f(double) { cout << "double"; }
int main() {
f(5);
f(5.0f);
return 0;
}
- A.
double double
- B.
int double
- C.
Error
- D.
int int
Sign up free to see the answer and a step-by-step explanation.