Using stdarg.h we can have function call with variable number of arguments. Is this also classified as function overloading?
Using stdarg.h we can have function call with variable number of arguments. Is this
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Typically, function overloading has the implication that a different instance of a function/method is invoked depending on the given parameters. With variable arguments in C, the same function is called regardless of the parameter list. So based on that, the answer would be, “No.” The function itself could of course mimic the behavior of overloading (do A if 1 argument, do B if 2 arguments, etc.), but it probably would not normally be termed “overloaded”.