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
write a program to find the given number is prime or not
What is string in c language?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Is javascript based on c?
Can the size of an array be declared at runtime?
What do you mean by c?
What are the scope of static variables?
What is an identifier?
What is the use of gets and puts?
What is a good way to implement complex numbers in c?
What is meant by recursion?
How can I convert a number to a string?
Why do we need a structure?
i want to know the procedure of qualcomm for getting a job through offcampus
What is a pointer in c plus plus?