Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What should malloc() do?

1167


How can I open files mentioned on the command line, and parse option flags?

1069


Is c procedural or functional?

1024


Can a variable be both constant and volatile?

1113


By using C language input a date into it and if it is right?

1077


How can I find out if there are characters available for reading?

1108


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

2801


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2067


Explain data types & how many data types supported by c?

1085


What are the data types present in c?

1160


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2738


Differentiate between the = symbol and == symbol?

1293


How will you find a duplicate number in a array without negating the nos ?

2130


Do variables need to be initialized?

1039


Can you write a programmer for FACTORIAL using recursion?

1039