+ 1
Input is "hello world" . Can some one explain me this? Iam getting different outputs in different compilers
2 Respuestas
+ 2
If you want extra chatacter (in C), use extra %s.
Or use _ instead of space between words.
If you use 'hello world', it will become :
%s = 'hello'
'world' is ignore because it is not decimal.
%d = 0 because that's i default value.
here modified version if you want to use space.
https://code.sololearn.com/cxZgTXnP9V6E/?ref=app
PS. i m not a c programmer, that's just how i think about that.
Sry if i m wrong.
0
Bro "i" default value is garbage value here since it is auto variable