Which is the correct way of handling arguments with spaces?

a) Use single quotes
b) Either single or double quotes
c) Use double quotes
d) There is no way of handling arguments with space

1 thought on “Which is the correct way of handling arguments with spaces?”

  1. b
    Explanation: One can use either single or double quotes to handle command line argument with spaces in-between. For example, ./output “Hello World” has 2 command line argument “./output” and “Hello World”.

Leave a Comment