C Programming - Variable Number of Arguments - Discussion

Discussion Forum : Variable Number of Arguments - Yes / No Questions (Q.No. 5)
5.
Can the fixed arguments passed to the function that accepts variable argument list, occur at the end?
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
7 comments Page 1 of 1.

Sumit said:   10 years ago
Argument: An argument represents the value that you pass to a procedure parameter when you call the procedure. The calling code supplies the arguments when it calls the procedure.

Parameter: A parameter represents a value that the procedure expects you to pass when you call it. The procedure's declaration defines its parameters.

Sagar Shinde said:   1 decade ago
What is the difference between fixed arguments and variable arguments?

Vimal Dhaduk said:   1 decade ago
I agree with you. Vasu. But it necessary to know about some possibilities and Good programmer characteristics are to KISS (Keep In Source Simple) that's creativity generate if we know some possibilities so learn more and be effective, simple, give user friendly output that's learn from here.

Bye the way I thankful of indiabix to give me many cases to learn and grow of my skills.

Vasu said:   1 decade ago
Why is software questions so complicated when in real world programming even person with basic or sufficient knowledge can become a very efficient programmer with minimal program concepts.

Minhaj said:   1 decade ago
//eg...
void fun(char *msg, ...);

int main()
{
fun("IndiaBIX", 1, 4, 7, 11, 0);
return 0;
}
void fun(char *msg, ...)
{
va_list ptr;
int num;
va_start(ptr, msg);
num = va_arg(ptr, int);
num = va_arg(ptr, int);
printf("%d", num);
}
(1)

Pradeepk said:   1 decade ago
One example please.

Nuzhat said:   1 decade ago
Default arg are passed from right to left or from end of argument list while fixed arguments passed to the function from beginning of argument list.

Post your comments here:

Your comments will be displayed after verification.