Computer Science, asked by SurajJagtap, 1 year ago

Explain I/O streams in C++

Answers

Answered by Anonymous
3

C++ input/output streams are primarily defined by iostream , a header file that is part of the C++ standard library (the name stands for Input/Output Stream). In C++ and its predecessor, the C programming language, there is no special syntax for streaming data input or output.

Answered by rohithimmatp7e1gc
2
hey buddy (^o^)

In simple terms, I/O stream stands for input and output stream which means the flow of sequence or set of instructions or data (in bytes) In and out from a program and
In c++ programming, it is defined by one of the header file from standard c++ library and functions like:

-> used in input /output operation like to input some instructions to a program u need to use
'cin' similarly for output u need 'cout ' (these prewritten program files basically allows flow of data from keyboard to the output screen)

So, in simple words, I/O stream is just prewritten code within the standard library of c++ which allows us to use input and output functions of c++.

so this also why we always include c++ in every c++ program..

SORRY BUDDY FOR SUCH LONG ANSWER,
FOR SHORT ANSWER SKIP TO 3-PARA..
HOPE THIS HELPS ^_^
Similar questions