C Programming - Variable Number of Arguments - Discussion

Discussion Forum : Variable Number of Arguments - Yes / No Questions (Q.No. 1)
1.
Can we pass a variable argument list to a function at run-time?
Yes
No
Answer: Option
Explanation:
Every actual argument list must be known at compile time. In that sense it is not truly a variable argument list.
Discussion:
5 comments Page 1 of 1.

Meenakshi said:   10 years ago
Variable length arguments is an advanced concept in C language offered by C99 standard. When a function gets number of arguments that changes at run time, we can go for variable length arguments.

It is denoted as (3 dots) stdarg.h header file should be included to make use of variable length argument functions.

Tera baap said:   1 decade ago
What about command line arguments?

Yashodhar said:   1 decade ago
Yes there is a concept ellipses to pass variable arguments in C language.

Sharad said:   1 decade ago
What will be the situation if we use ellipses?

Sagar said:   1 decade ago
What if we use ellipses?

Post your comments here:

Your comments will be displayed after verification.