1

argc parameter in main function doesn't include redirection command [<, >], but I faced a confusing problem when using a double quote:

  • Shell: CMD
    • I expected argc is 3 and Yes!:
      a.exe aa bb < input.txt
      

    • I expected argc is also 3 , but 5, as I want to input double quote as argument:
      a.exe \" bb < input.txt
      
JW0914
  • 9,096
Doge
  • 11
  • 1

0 Answers0