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...

How do I access command-line arguments?

Answer Posted / srujana

we can access the command-line arguments by passing the
arguments argv and argc on to the main() function where
argv represents an array of pointers to strings and argc
holds the int value which is equal to the number of strings
that are in argv

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure in c definition?

1111


What are the advantages of using Unions?

1171


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3999


What is file in c preprocessor?

1195


What is pass by value in c?

1134


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1265


What are the header files used in c language?

1096


What is #include called?

1101


Is c a great language, or what?

1166


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1206


Explain Function Pointer?

1242


What are the 5 elements of structure?

1129


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1174


How can you pass an array to a function by value?

1178


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2340