What is stream in c programming language?

Stream is not a hardware it is linear queue which connect file to program and passes block of data in both direction .So it is independent of devices which we are using. We can also define stream as source of data. This source can be

(a) A file
(b) Hard disk or CD, DVD etc.
(c) I/O devices etc.

In c programming language there are two type of stream.

(a) Text streams
(b) Binary streams

6 comments:

Anonymous said...

This very basic fact was kind of confusing to me. This really helped clear the picture of what a stream is in C. Thank you

rahul said...

thanks alot for such simple info...

also,
stream is a sequential flow of data.

Anonymous said...

Thank you Its very useful for me........

Anonymous said...

do we have this kind of link in c++

Khizer Khan said...

thankz broo its really help me'

Anonymous said...

Thank you its help me