How do I access command-line arguments?
Answer Posted / reejusri
In order to access the command arguments, the main()
function must have a prototype similar to the following.
int main(int argc, char * argv[])
The names argc and argv are usually used for the
parameters, but a programmer could use different names.
Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
Explain union.
What is extern variable in c with example?
The statement, int(*x[]) () what does in indicate?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Why do we need volatile in c?
What is self-referential structure in c programming?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Explain enumerated types in c language?
What is wild pointer in c?
What are the keywords in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is the scope of local variable in c?
Which one would you prefer - a macro or a function?
What is variables in c?
If null and 0 are equivalent as null pointer constants, which should I use?