Oracle® Solaris Studio 12.4: C User's Guide

Exit Print View

Updated: March 2015
 
 

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, the value is:

0
’1’
’2’
’3’

or 0x313233.