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
Do you know the purpose of 'register' keyword?
What is the maximum length of an identifier?
What is malloc calloc and realloc in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
How can you restore a redirected standard stream?
how to find anagram without using string functions using only loops in c programming
What is a lookup table in c?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
How do we open a binary file in Read/Write mode in C?
which is an algorithm for sorting in a growing Lexicographic order
Is a house a shell structure?
how we can make 3d venturing graphics on outer interface
Can we replace the struct function in tree syntax with a union?
Explain what is a pragma?
How to set file pointer to beginning c?