Question OOP-POLY-0036
EasyWhat is the output of this code?
#include <iostream>
using namespace std;
int f(int x) { return x * 2; }
double f(double x) { return x / 2; }
int main() {
cout << f(4) << " " << f(4.0);
}
- A.
8 2
- B.
2 8
- C.
8 8
- D.
2 2
Sign up free to see the answer and a step-by-step explanation.