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 a good data structure to use for storing lines of text?
Why we use conio h in c?
Describe the modifier in c?
What is the value of uninitialized variable in c?
What happens if you free a pointer twice?
Not all reserved words are written in lowercase. TRUE or FALSE?
Explain can you assign a different address to an array tag?
What is array within structure?
Explain spaghetti programming?
Can you think of a logic behind the game minesweeper.
What is the collection of communication lines and routers called?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Explain two-dimensional array.
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What is binary tree in c?