Multibyte character constants????
Arne Henrik Juul
arnej at solan15.solan.unit.no
Fri Jun 29 08:19:27 AEST 1990
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?
We have used different compilers on different machines,
and all but one gave the same answer: 'A'*256+'B'= 16706
The odd one out was 'vcc', an ANSI complient compiler for
ULTRIX. It gave 'B'*256+'A' = 16961.
Just askin' -
-- arnej at solan.unit.no -- juul at norunit.bitnet -- Arne.H.Juul at sintef.no --
-- This disclaimer intentionally left blank --
More information about the Comp.std.c
mailing list