The source code is as the following.
cout << '\\' << endl; //OK, output is \
cout << '\\\\' << endl; //OK, output is an integer 23644, but why?
The statement cout << '\\\\' << endl; invokes the following function of class ostream.
_Myt& __CLR_OR_THIS_CALL operator<<(int _Val)
I know it is strange to write the expression '\\\\', But I don’t understand why it doesn’t fail. How to explain the result?