Input is "hello world" . Can some one explain me this? Iam getting different outputs in different compilers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Input is "hello world" . Can some one explain me this? Iam getting different outputs in different compilers

https://code.sololearn.com/cMSJ56xQxNAY/?ref=app

23rd Apr 2020, 5:36 PM
vasireddy ganesh
vasireddy ganesh - avatar
2 Answers
+ 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.
23rd Apr 2020, 5:59 PM
The Sylar
0
Bro "i" default value is garbage value here since it is auto variable
24th Apr 2020, 1:42 AM
vasireddy ganesh
vasireddy ganesh - avatar