0
How to function overload in C
How function overloading in c easy explain plz
2 odpowiedzi
+ 1
Function overloading is a C++ feature. In C functions are distinguished by their identifier alone (not the number of parameters or the type of those parameters).
There are ways around it (see: _Generic in C11) but the simplest and most portable solution is to add the name of the type at the end of the function identifier (as is done in the C standard library and many 3rd party libraries, ex: strtol, strtoul, strtof, strtod, atoi, atof, atol, etc).
0
By providing different number of arguments to functions with same name. They are many examples online that you can go through to get a detailed explanation on it.