I have an array of chars like this one:
char arr[3]=\"hi\"; cout << arr;// this will print out hi
So is the operator<< has an
Your ostream and istream do have operator<< and operator>> overloaded to take a char*, and arrays decay into pointers to the first element. So, yes it does what you say it does.
ostream
istream
operator<<
operator>>
char*