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
What is oops and why we use oops?
What is the difference between abstraction and polymorphism?
Is abstract thinking intelligence?
Why do we use encapsulation in oops?
What is the purpose of enum?
What is inheritance in simple words?
What is encapsulation example?
What is a superclass in oop?
What exactly is polymorphism?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What type of loop is a for loop?
What is meant by multiple inheritance?
Can abstract class have normal methods?
What is a null tree?
What is abstraction with example?