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
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is getch c?
how do you programme Carrier Sense Multiple Access
Combinations of fibanocci prime series
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What are the uses of null pointers?
write a c program to find the sum of five entered numbers using an array named number
Differentiate call by value and call by reference?
Explain what are compound statements?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
How can I list all of the predefined identifiers?
What are 3 types of structures?
Is that possible to add pointers to each other?
what is different between auto and local static? why should we use local static?