RTUComputer ScienceYr 2024 · Sem 32024

Q9Object Oriented Programming

Question

What are input and output stream?

Answer

Streams are abstract, sequential flows of raw byte data mathematically routed between the CPU and external physical devices.

In C++, a "stream" is a highly abstract, logical architecture representing a continuous, unidirectional flow of raw byte data. An Input Stream mathematically routes data from a physical source (like a keyboard or hard drive) directly into RAM. An Output Stream violently flushes data from RAM out to a physical destination (like a monitor or network socket).

Back to Paper