1

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

The following code compiles in C++:

unsigned int x;
x = 'abc';

What does it mean? Is putting string between quotation marks legal? What does it do?

Community
  • 1
  • 1
Luchian Grigore
  • 253,575
  • 64
  • 457
  • 625

1 Answers1

1

Is not a string, but a multi character literal. See What do single quotes do in C++ when used on multiple characters?. (Vote to close as duplicated)

Community
  • 1
  • 1
K-ballo
  • 80,396
  • 20
  • 159
  • 169