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

write a program to find the given number is prime or not

3838


What is string in c language?

621


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.

3498


Is javascript based on c?

595


Can the size of an array be declared at runtime?

602






What do you mean by c?

585


What are the scope of static variables?

599


What is an identifier?

620


What is the use of gets and puts?

599


What is a good way to implement complex numbers in c?

592


What is meant by recursion?

630


How can I convert a number to a string?

604


Why do we need a structure?

583


i want to know the procedure of qualcomm for getting a job through offcampus

1933


What is a pointer in c plus plus?

690