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 difference between array and pointer in c?

1027


Can we declare a function inside a function in c?

989


What is the difference between void main and main in c?

1096


What does struct node * mean?

965


#include { printf("Hello"); } how compile time affects when we add additional header file .

1852


What is #include stdlib h?

1056


What is structure padding and packing in c?

1004


What is pragma in c?

1130


What is operator precedence?

1150


What is variable in c example?

993


write a program to copy the string using switch case?

2843


What is file in c language?

964


Write a program to swap two numbers without using third variable in c?

1070


In C programming, what command or code can be used to determine if a number of odd or even?

990


How can I delete a file?

1016