I always asked my self this question, Why printf() in C was designed to accept any number of parameters, isn’t that Overloading? if yes how does a pure structured language contains an Object oriented language concept like Method overloading?
Share
No, there is no overloading in C. It is called a “variadic function”.
And no, despite its appearance in C++ and absence from C, method overloading is not an object-oriented concept. It is featured prominently in rather old programming languages, such as Prolog, that are not object-oriented.