#Funny behaviour of printf();

9 messages · Page 1 of 1 (latest)

karmic groveBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

unborn jewel
#

both pieces of code produce

ingstringstringstringstring
stringstringstringstringstr
ingstringstringstringstring
...``` 
on my machine
#

try a different compiler perhaps?

grim fiber
#

what compiler do you use?

glass sentinel
#

under no well-confirming compiler should printf("string") print a newline

winter blade
#

are you maybe using puts instead of printf?

karmic groveBOT
#

Thank you and let us know if you have any more questions!

arctic rain
#

What compiler are you using @half plume? i'm curious

arctic rain
#

oh, ok