How do I access command-line arguments?
Answer Posted / reejusri
In order to access the command arguments, the main()
function must have a prototype similar to the following.
int main(int argc, char * argv[])
The names argc and argv are usually used for the
parameters, but a programmer could use different names.
Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is the scope of static variable in c?
What does c in a circle mean?
I need a sort of an approximate strcmp routine?
In C language what is a 'dangling pointer'?
What is the heap in c?
Distinguish between actual and formal arguments.
how can use subset in c program and give more example
Which is better malloc or calloc?
Write a code to generate divisors of an integer?
What is the size of structure in c?
How can I get back to the interactive keyboard if stdin is redirected?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Explain how do you list a file’s date and time?
Why c is called free form language?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.