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 / reejusri

In order to access the command arguments, the main()
function must have a prototype similar to the following.
int main(int argc, char * argv[])

The names argc and argv are usually used for the
parameters, but a programmer could use different names.

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between structure and union?

1190


What does return 1 means in c?

1118


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1171


When should the register modifier be used? Does it really help?

1009


What is a static function in c?

1242


What is typedf?

1164


What is the use of getchar functions?

1231


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3381


Can you please explain the scope of static variables?

1108


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

3334


What are header files in c programming?

1182


Why does the call char scanf work?

1261


What is void pointers in c?

1066


How to declare a variable?

1071


what is ur strangth & weekness

2525