0
No output in C code playground
I have a few printf statements in one of my codes: https://code.sololearn.com/chZjIXMj08rK/#c But, the output tab shows no output. Not able to find, what's wrong... could anyone help, please?
3 Antworten
+ 3
try is not a C concept so I get compile errors trying to run your program so delete lines 6, 11, 12, and 13. Line 7: you meant str4 as you wanted to change "hello". Line 9: you meant str, but, it is protected memory so your program crashes acessing it.
+ 2
You can comment out line 9, after making my suggested changes to prove the point. With it there, you crash before the printf output is flushed so no output. With it gone, you will get the output.
You might wish to add '\n' to the end of your printf strings so they don't end up as a single output.