Home / Questions / What is command line argument?
Explanatory Question

What is command line argument?

👁 1,116 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

The argument passed to the main() function while executing the program is known as command line argument. For example:


main(int count, char *args[]){  
//code to  be executed  
}