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 is the maximum length of an identifier?
What do you mean by c what are the main characteristics of c language?
How can I list all of the predefined identifiers?
Is a house a shell structure?
Explain zero based addressing.
How can you check to see whether a symbol is defined?
Was 2000 a leap year?
Why do we use main function?
What is d scanf?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
what are the 10 different models of writing an addition program in C language?
What does the c in ctime mean?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Explain the red-black trees?