C++

Asked • 07/27/19

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?

1 Expert Answer

By:

Alberto F. answered • 05/26/20

Tutor
4.6 (11)

Computer Science and Math Educator, Software Engineer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.