What is the full form of iostream.h?

What is the full form of iostream.h?

To know the full form of “iostream.h”, let’s break it-

  • i = input (Cin)
  • o = output (Cout)
  • stream = Streams refer to sequence of bytes. In Files we store data i.e. text or binary data permanently and use these data to read or write in the form of input output operations by transferring bytes of data
  • .h = header

In C++ , we use

#include <iostream.h>

In order to include the header file iostream” in the program. Iostream is used to call the commonly used functions like cout,cin in a C++ program.

Now lets see an simple C++ program -

#include <iostream.h> 
int main()
{
   int a, b, c;

   cout << "Enter two integers to add\n";
   cin >> a >> b;

   c = a + b;
   cout <<"Sum of the numbers: " << c << endl;

   return 0;
}

That’s it guys!

Thank You for reading :)

Happy Learning & Coding :)