Top

Discussion

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

Answer: B

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”.

No comment is present. Be the first to comment.
Loading…

Post your comment