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

In the following declaration of main, "int main(int argc,
char *argv[])", to what does argv[0] usually correspond?




1) The first argument passed into the program


2) The program name


3) You can't define main like that

Answer Posted / sumeet sharma

argv[o] the array of strings will point to the name of the
program.
argv[1] will point to the first argument and so on.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi all..i want to know oops concepts clearly can any1 explain??

2175


What is encapsulation example?

1121


What is abstract class in oop?

1062


What is the purpose of enum?

1056


What is encapsulation in ict?

1117


What are different oops concepts?

1113


Which is not an object oriented programming language?

1034


Can you inherit a private class?

1141


What is constructor overloading in oop?

1180


What are benefits of oop?

1196


Write a program to reverse a string using recursive function?

2409


What exactly is polymorphism?

1182


What is balance factor?

1132


Which method cannot be overridden?

1171


What is abstraction in oop?

1188