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 should malloc() do?
How can I open files mentioned on the command line, and parse option flags?
Is c procedural or functional?
Can a variable be both constant and volatile?
By using C language input a date into it and if it is right?
How can I find out if there are characters available for reading?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Explain data types & how many data types supported by c?
What are the data types present in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Differentiate between the = symbol and == symbol?
How will you find a duplicate number in a array without negating the nos ?
Do variables need to be initialized?
Can you write a programmer for FACTORIAL using recursion?