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

What is variable example?

586


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

1588


What is encapsulation in oop?

595


What are the 5 oop principles?

585


What is property in oops?

549






What is difference between inheritance and polymorphism?

557


What is destructor oops?

607


What are classes oop?

585


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2083


Why is oop useful?

585


What is abstraction in oop with example?

631


Why polymorphism is used in oops?

571


What is oops and its features?

571


How many human genes are polymorphic?

558


Why do we need oop?

648