C++ comes with libraries that help in performing basic input/output operations. In c++, a sequence of bytes is corresponding to input/output is called a stream.

Rows of data from input devices(keyboard, mouse) to main memory are called input streams.

Rows of data from main memory to output devices(monitor, printer) are…

A variable is simply a storage unit for our data. Just like in real life we have different containers to store different objects similarly, we require different amounts of memory to store different types of data.

Variable declaration

#include <iostream>int main() {
//variable declaration


I am a CS graduate and an ML enthusiast. My purpose here is to guide beginners in their programming and Machine learning journey.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store