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
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
What is the use of ?: Operator?
Here is a good puzzle: how do you write a program which produces its own source code as output?
write a program in c language to print your bio-data on the screen by using functions.
Explain how can I right-justify a string?
Why is sizeof () an operator and not a function?
Why we use void main in c?
How do you convert strings to numbers in C?
How do you determine whether to use a stream function or a low-level function?
Explain how do you determine a file’s attributes?
What is difference between array and structure in c?
Why do we use int main instead of void main in c?
What is a lvalue
How can you find the day of the week given the date?
What's the best way of making my program efficient?