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

Is react oop?

628


When not to use object oriented programming?

579


What are functions in oop?

598


Why polymorphism is used in oops?

594


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

1687






what type of questions

1703


What is the benefit of oop?

580


What do you mean by variable?

586


what is difference between class template and template class?

2171


What is methods in oop?

566


What is class and object in oops?

621


What is the oops and benefits of oops programming?

566


write a programe to calculate the simple intrest and compund intrest using by function overlading

1678


Why is polymorphism used?

594


Can we define a class within the interface?

569