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
Write a simple code fragment that will check if a number is positive or negative.
explain what is fifo?
How can you find out how much memory is available?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is c preprocessor mean?
Explain how does free() know explain how much memory to release?
using for loop sum 2 number of any 4 digit number in c language
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
How do you search data in a data file using random access method?
What is pass by reference in c?
Why is %d used in c?
Why functions are used in c?
What is malloc calloc and realloc in c?