How come foo(3,3.14); Doesn't work
but Goo(3,3.14); works?
Please reply.
#include <iostream>
using namespace std;
double foo(double a, double b) {
cout<<"foo(double a, double b)"<<endl;
}
int foo(int a, int b){
cout<<"foo(int a, int b)"<<endl;
}
double Goo(float a, float b){
cout<<"Goo(float a, float b)"<<endl;
}
int Goo(int a, int b){
cout<<"Goo(int a, int b)"<<endl; //this one
}
int main()
{
foo(3,3.14); // Doesn't work
Goo(3,3.14); //Works
}