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
Describe the steps to insert data into a singly linked list.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
explain what are pointers?
What is a program flowchart and how does it help in writing a program?
what is uses of .net
What is wrong in this statement?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What is meant by type casting?
What is the purpose of macro in C language?
Is swift based on c?
Can you assign a different address to an array tag?
ATM machine and railway reservation class/object diagram
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What language is windows 1.0 written?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM