9.how do you write a function that takes a variable number
of arguments? What is the prototype of printf () function?
10.How do you access command-line arguments?
11.what does ‘#include<stdio.h>’ mean?
12.what is the difference between #include<> and #include”…”?
13.what are # pragma staments?
14.what is the most appropriate way to write a
multi-statement macro?
Answer Posted / sumati
9. By using default arguments, we can write a function that
takes a variable number of arguments.
10. By default, 2 arguments are passed to main function..
One is the count that contains number of arguments + 1.
1 is for the program name.
Second argument is the array of arguments...with prgram name
at the first index i.e. [0] and the size of array is count-1.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Who is the founder of c language?
int i=10; printf("%d %d %d", i, i=20, i);
What does == mean in texting?
How to declare a variable?
What is the translation phases used in c language?
Multiply an Integer Number by 2 Without Using Multiplication Operator
How can I use a preprocessorif expression to ?
Can you please explain the scope of static variables?
What is floating point constants?
Why pointers are used in c?
What is data structure in c language?
Apart from dennis ritchie who the other person who contributed in design of c language.
Why shouldn’t I start variable names with underscores?
Differentiate between full, complete & perfect binary trees.
I have seen function declarations that look like this