What does 'stream' mean in C?

后端 未结 6 2013
无人及你
无人及你 2021-02-15 23:40

I\'m reading a section in \'C Primer Plus\' which deals with files, streams and keyboard input. The author connects the concept of stream with files and defines stream as follow

6条回答
  •  余生分开走
    2021-02-16 00:40

    A stream is the C way of dealing with different data mediums/sources. These can include say

    1. A file
    2. A socket

    and so on. A stream, as an interface, helps you forget how data is managed under the hood and concentrate on desired objectives.

提交回复
热议问题