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
What are the loops in c?
What is a scope resolution operator in c?
What is data types?
How do you list a file’s date and time?
What is the use of clrscr?
In which language linux is written?
Do character constants represent numerical values?
Why c is known as a mother language?
write a program to copy the string using switch case?
Do you know what are the properties of union in c?
explain what is fifo?
What is string constants?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is #define in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list