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 exit() function?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Describe how arrays can be passed to a user defined function
How to declare pointer variables?
Can we initialize extern variable in c?
Why are all header files not declared in every c program?
Why is c not oop?
Explain the binary height balanced tree?
Can a pointer be static?
What is character constants?
What are type modifiers in c?
How do I get a null pointer in my programs?
What is indirection in c?
What is keyword in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.