What is the difference between cout and cerr?



A)Cout is unbuffered output and cerr is buffered output

B)Cout is standard output and cerr is not a standardoutput

C)Cout is not a standard output and cerr is standard output

D)Cout is buffered output and cerr is unbuffered output

Respuesta :

Answer: D) Cout is buffered output and cerr is unbuffered output

Explanation:  

Cout is buffered output as it is used  for the production of the output on the device which displays the standard output. Unbuffered error stream (cerr) is a stream of the standard output which is basically used for the displaying/ production of the output.

Answer:

Cout is buffered output as it is used for displaying output while logical implementation

but cerr is unbuffered as it avoid logical operators error

So D) cout is buffered and cer is unbuffered