C Programming - Variable Number of Arguments - Discussion


Which header file should you include, if you are going to develop a function, which can accept variable number of arguments?

[A]. varagrg.h
[B]. stdlib.h
[C]. stdio.h
[D]. stdarg.h

Answer: Option D


No answer description available for this question.

Yash Thakur said: (Jun 29, 2011)  
Why we use stdarg.h ?

Sangeetha said: (Jul 29, 2011)  
stdarg.h is a header in the C standard library of the C programming language that allows functions to accept an indefinite number of arguments.

Shakil said: (Aug 18, 2011)  

I can't get this still can anyone exaplain in detail.

Sudheer said: (Sep 13, 2011)  
@sangeetha. Please give me one example to clarify myself.

Kapil said: (Mar 9, 2012)  
Any one can give small programme on this ?

Sundar said: (Mar 9, 2012)  
@Sudheer and Kapil


Shital Dandale said: (Oct 5, 2015)  
stdargs is a header file which use the functions to define no. of argument.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.