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

What are the loops in c?

589


What is a scope resolution operator in c?

742


What is data types?

632


How do you list a file’s date and time?

623


What is the use of clrscr?

589






In which language linux is written?

595


Do character constants represent numerical values?

834


Why c is known as a mother language?

635


write a program to copy the string using switch case?

2395


Do you know what are the properties of union in c?

577


explain what is fifo?

630


What is string constants?

653


What is the time and space complexities of merge sort and when is it preferred over quick sort?

671


What is #define in c?

613


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

625