Multibyte character constants????
Stephen Clamage
steve at taumet.com
Sat Jun 30 01:40:30 AEST 1990
In article <1990Jun28.221927.6823 at idt.unit.no> arnej at solan1.solan.unit.no writes:
>
>We have stumbled across the subject of multibyte character
>constants. Is this defined anywhere? For example, if we
>say
>main(){printf("%d\n",'AB');}
>what should the output be?
The standard says (section 3.1.3.4):
"The value of an integer character constant containing more than one
character, or containing a character or escape sequence not represented
in the basic execution character set, is implementation-defined."
This means that the implementation can do anything it likes, but it
must tell you what it does.
--
Steve Clamage, TauMetric Corp, steve at taumet.com
More information about the Comp.std.c
mailing list