What does 'stream' mean in C?

后端 未结 6 1995
无人及你
无人及你 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:19

    Simply a stream is a FILE * Like function C FILE * fopen ( const char * filename, const char * mode ) This function return a File *

    FILE:

    Object containing information to control a stream Object type that identifies a stream and contains the information needed to control it, including a pointer to its buffer, its position indicator and all its state indicators.

提交回复
热议问题