Multiple choice technology programming languages

Class that reads and writes to an array in memory is

  1. ostream

  2. ifstream

  3. strstream

  4. None of the Above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The strstream class in C++ is specifically designed for reading and writing to an array in memory. It implements stream operations on character arrays stored in memory. Ostream is for output streams only, ifstream is for input file streams, so strstream is the correct answer for in-memory array I/O operations.