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
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What extern c means?
What is actual argument?
What tq means in chat?
Tell me the use of bit field in c language?
How can I find the modification date of a file?
Explain what is the difference between text files and binary files?
What is void main () in c?
What is time complexity c?
What does s c mean in text?
Describe static function with its usage?
Write a program to print fibonacci series without using recursion?
How are strings stored in c?
What are pointers? Why are they used?
What is the purpose of void in c?