C program to print all arguments given through command line
belongs to collection: Command Line Arguments Examples/Programs in C language
All Answers
total answers (1)
belongs to collection: Command Line Arguments Examples/Programs in C language
total answers (1)
Program:
Output
Consider the output
./main, Hello, and world are the single word argument while "how are you?" is multiple words arguments, to pass multiple words in command line, we can enclose them in double quotes.
need an explanation for this answer? contact us directly to get an explanation for this answer