C Programming - Variable Number of Arguments - Discussion

Discussion Forum : Variable Number of Arguments - Yes / No Questions (Q.No. 3)
3.
Is it necessary that in a function which accepts variable argument list there should be at least be one fixed argument?
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Nitish said:   1 decade ago
In K&R C, there must 1 variable in argument list otherwise it takes void (No return type).

Eg: fun() ;

If we declare like this then it will accept as follow:

fun(void) ;

But In ANSI C if we don't pass the variables even than it defines that any number of argument we can pass.

Eg: fun() ;

If we declare like this then it will accept as follow:

Fun (...) ;

Sameer said:   1 decade ago
Can any one explain this ?

Post your comments here:

Your comments will be displayed after verification.