How do I access command-line arguments?
Answer Posted / srujana
we can access the command-line arguments by passing the
arguments argv and argc on to the main() function where
argv represents an array of pointers to strings and argc
holds the int value which is equal to the number of strings
that are in argv
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Should I learn data structures in c or python?
What are the different types of errors?
What is const volatile variable in c?
What is the size of a union variable?
how we can make 3d venturing graphics on outer interface
Can you write the function prototype, definition and mention the other requirements.
In C, What is the #line used for?
How we can insert comments in a c program?
What is #include stdio h and #include conio h?
What is the difference between printf and scanf )?
What are formal parameters?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the maximum length of an identifier?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Explain pointers in c programming?