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


Please Help Members By Posting Answers For Below Questions

Who is the founder of c language?

686


int i=10; printf("%d %d %d", i, i=20, i);

1016


What does == mean in texting?

666


How to declare a variable?

572


What is the translation phases used in c language?

636






Multiply an Integer Number by 2 Without Using Multiplication Operator

321


How can I use a preprocessorif expression to ?

601


Can you please explain the scope of static variables?

602


What is floating point constants?

693


Why pointers are used in c?

591


What is data structure in c language?

607


Apart from dennis ritchie who the other person who contributed in design of c language.

813


Why shouldn’t I start variable names with underscores?

625


Differentiate between full, complete & perfect binary trees.

673


I have seen function declarations that look like this

602