Which function is called for calc(3) ?Code:void utils::calc(int a) { /* different code */ } void utils::calc(char b) { /* different code */ }
Also refer to :
Function overloading in C++ - Stack Overflow
Which function is called for calc(3) ?Code:void utils::calc(int a) { /* different code */ } void utils::calc(char b) { /* different code */ }
Also refer to :
Function overloading in C++ - Stack Overflow