Sun Studio 12: C User's Guide

2.1.2 Character Constants

A multiple-character constant that is not an escape sequence has a value derived from the numeric values of each character. For example, the constant ’123’ has a value of:

0

’3’

’2’

’1’

or 0x333231.

With the -Xs option and in other, non-ISO versions of C, the value is:

0

’1’

’2’

’3’

or 0x313233.