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
is3
andYes!
:a.exe aa bb < input.txt
- I expected
argc
is also3
, but5
, as I want to input double quote as argument:a.exe \" bb < input.txt
- I expected