If you are using stderr then presumably and error has occurred. If the error is serious the state of the system in unknown and could be unstable, in such an instance you want to keep the code as simple as possible to give it the best chance of working so stderr is unbuffered so that in the case of a critical error you have the best chance possible of actually getting to see your error messages.
Dear Friends ,
Thanks a lot for your answers .
I too got one answer that the reason stderr is unbuffered so that any error messages are displayed as quickly as possible, regardless of whether they contain a newline .
Comment