top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is a stream?

0 votes
128 views
What is a stream?
posted Jul 25, 2014 by Manish Tiwari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

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

answer Dec 1, 2014 by Shivaranjini
Similar Questions
+3 votes

I want to count the number of bytes in a stream that contains nulls. I know I can't use strlen() for this, is there an alternative?

char *stream = "\x11\x12\x13\x00\x12\x13\x14\x15";
+3 votes

Given an active stream of sorted arrays, how would you merge them efficiently?
C or Java code would be helpful?

...