Back to Code Walkthrough
Function Overload Resolution
C++ code walkthrough · Question 45Code
Read carefully. What does this print?1#include <iostream>2using namespace std;3void f(int x) { cout << "int " << x << endl; }4void f(double x) { cout << "double " << x << endl; }5int main() {6 f(5);7 f(5.0);8 f('A');9 return 0;10}