You're developing a program that needs to behave differently based on user input provided at runtime. How can command line arguments be utilized for this purpose?

  • By using the 'if-else' statements
  • By using environment variables
  • By reading input from a file
  • By utilizing command line arguments
Command line arguments allow a program to receive input from the user at runtime, typically provided when the program is executed from the command line. This input can be used to control the program's behavior. Options a, b, and c are not typically used for this specific purpose.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *