printf function is not print!

In my code,if I user printf without "\n" character, anything is not printed . I could not find reason of this.

Thanks for any help
The stream is buffered. If you want an early print, flush the stream.
Thanks for your reply
but when I add "\n" to my string to print, output is ok!!
that means "\n" character flush stdout buffer?
Thanks in advance
The '\n' character is a newline character, which tells the output stream to go to the next line. printf will also make sure that every time you output a '\n', all the input in the buffer is "flushed" which means it is actually written instead of buffer for later output, for example.
Thanks a lot for your attention.
Topic archived. No new replies allowed.