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

my ans is 2.it prints the program name

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 principles of oop?

586


program for insertion ,deletion,sorting in double link list

2261


Why do we need polymorphism in c#?

654


Can you explain polymorphism?

558


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2718






What are the two different types of polymorphism?

647


What is inheritance in oop?

579


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4215


Can private class be inherited?

596


What is debug class?what is trace class? What differences are between them? With examples.

1577


What are the 4 main oop principles?

647


What are the three parts of a simple empty class?

1428


What is the difference between encapsulation and polymorphism?

570


What is polymorphism in oop example?

496


What is polymorphism and types?

579