Why are we using <iostream> in our code

well actually is the part of the library it includes its namespace like std etc,

Privacy & Terms