Possible Duplicate:
What do single quotes do in C++ when used on multiple characters?
I was writing some C++ code over the weekend and by chance realised that the compiler has no qualms with single-quote strings - as long as they are 4 or less characters long.
(*by chance - When you use single-quote strings in javascript and SQL, you might find yourself getting them mixed up in other programming environments/languages)
Well, the outcomes are actually different. Look at the following lines:
cout << "Test" << endl;
cout << 'Test' << endl;
//! cout << 'Tests' << endl; // Lexical error: max of 4 characters in string exceeded
They compile without a hitch and you get the following results:
Test
1415923836
The third commented line wont compile citing a Lexical error. Can someone please explain to me what is happening here, or how C++ interprets the single-quote string?