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 variable and explain rules to declare variable in c?
What does & mean in scanf?
What is f'n in math?
What's the best way of making my program efficient?
What is the use of gets and puts?
Is python a c language?
In a byte, what is the maximum decimal number that you can accommodate?
What is maximum size of array in c?
I heard that you have to include stdio.h before calling printf. Why?
What tq means in chat?
Is c is a procedural language?
#include
What extern c means?
How many identifiers are there in c?
What is difference between array and pointer in c?