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 are Macros? What are its advantages and disadvantages?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is difference between arrays and pointers?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
can anyone please tell about the nested interrupts?
What is operator promotion?
What is the difference between null pointer and wild pointer?
How are strings stored in c?
Explain b+ tree?
Is there anything like an ifdef for typedefs?
What are the difference between a free-standing and a hosted environment?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Explain what is a 'locale'?