C Programming - Variable Number of Arguments - Discussion

Discussion Forum : Variable Number of Arguments - Yes / No Questions (Q.No. 6)
6.
It is necessary to call the macro va_end if va_start is called in the function.
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
9 comments Page 1 of 1.

Pragati said:   7 years ago
I think, there is no necessity of va_end.

It can be proved by the exp itself given in the above session (see 1st part where va_end not used although use of va_start).

GORIPARTHI .udaya lakshmi said:   8 years ago
Explain what is va_end and v_start? Please help me.

Vinod said:   8 years ago
It is not mandatory in GCC compiler. So option can be no also. Please write an appropriate answer for this question admin or explanation which I gave. Va_end is not mandatory to write for every prog.

Prakash said:   9 years ago
Here, va_start(list,last arg before) macro creates the list of variable arguments that are passed to the function and va_end(list) destroys the list.

Sowmya said:   9 years ago
Here, va_start points to the first argument and va_last points to the last argument.

John Peter said:   1 decade ago
Hey friends, can anyone explain ? how its working?

Santosh said:   1 decade ago
Please explain me what is va_end and va_start?

Malar said:   1 decade ago
Any one please explain this.

Sujila said:   1 decade ago
What is va_end and va_start function? please help me.

Post your comments here:

Your comments will be displayed after verification.