Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The GNU C Programming Tutorial - Uncoordinated output

Node:Uncoordinated output, Next:, Previous:Array out of bounds, Up:Run-time errors



Uncoordinated output

You may occasionally experience strange effects when writing output to the screen, such as no output at all until the input is complete, or spontaneous bursts of output at seemingly random intervals. This sort of problem usually has to do with the way the output is buffered. The solution is usually to write a newline character (\n) to the output when you are ready to display it, or to use a function like fflush to flush the buffer. (See Stream buffering, for more information.)

 
 
  Published under free license. Design by Interspire