C++ view of input and output

Questions?

Q1.
A1.

Q2.
A2.