Q1Object Oriented Programming
Question
Why do we need the pre-processor directive # include < iostream >?
Answer
The <iostream> directive literally commands the C++ compiler to physically include the standard input/output stream library during the preprocessing phase.
The pre-processor directive #include <iostream> is an absolute necessity in C++. It mathematically commands the compiler to locate and physically insert the standard Input/Output Stream header file directly into the source code before actual compilation begins. This header contains the strict definitions required to utilize cin (character input) and cout (character output).