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
What is structure in c definition?
What are the advantages of using Unions?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is file in c preprocessor?
What is pass by value in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are the header files used in c language?
What is #include called?
Is c a great language, or what?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Explain Function Pointer?
What are the 5 elements of structure?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
How can you pass an array to a function by value?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)