For some reason, adding \\n to printf() changes the behaviour of below code. The code without \\n prints (null) whereas t
\\n
printf()
(null)
Executing with no arguments argv[1] shall be NULL pointer. With argv[1] being NULL
argv[1]
NULL
printf("%s", argv[1]);
will invoke undefined behavior.