Overloading cin<<

what is the need of passing of cin by reference in operator<<(ostream &os)?

@n.nishchaya2000 its just syntax whenever you want to overload << and >> you have to pass by ref no issue