What do single quotes do in C++ when used on multiple characters?

I’m curious about this code:

cout << 'test'; // Note the single quotes.

gives me an output of 1952805748.

My question: Is the output an address in memory or something?

5 Answers
5

Leave a Comment