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
can anyone please tell about the nested interrupts?
Explain what is operator promotion?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
How do you define structure?
What does *p++ do?
Explain 'far' and 'near' pointers in c.
write a program to find out prime number using sieve case?
What is the advantage of c?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is the size of empty structure in c?
Explain how can you be sure that a program follows the ansi c standard?
What is struct node in c?
How many types of functions are there in c?