[Master Answer Logo]
Question

Function overloading in C?

Answer

However, in C++ templates or even C macros, operator overloading is needed in writing down generic, primitive operations such as summing elements when implementing a vector template. The only way to write primitive addition is a + b and this works for all types of elements only because of its overloading. (Actually, in C++ one could define an overloaded function add to use instead, but not in C.)

— Source: Wikipedia (www.wikipedia.org)