How did we overload () for comparing values

I don’t understand how this overloaded function works .

You mean function overloading. In this two function are distinguised by the arguments names.
void print(int i) {
cout << " Here is int " << i << endl;
}
void print(double f) {
cout << " Here is float " << f << endl;
}
void print(char const c) {
cout << " Here is char
" << c << endl;
}
int main() {
print(10); // 1st function
print(10.10); // 2nd function
print(“ten”); // 3rd function
return 0;
}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.