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 difference between array and pointer in c?
Can we declare a function inside a function in c?
What is the difference between void main and main in c?
What does struct node * mean?
#include
What is #include stdlib h?
What is structure padding and packing in c?
What is pragma in c?
What is operator precedence?
What is variable in c example?
write a program to copy the string using switch case?
What is file in c language?
Write a program to swap two numbers without using third variable in c?
In C programming, what command or code can be used to determine if a number of odd or even?
How can I delete a file?