🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1450

Multibyte character constants????

#1450
From: Arne Henrik Juul
Date: Thu, 28 Jun 1990 22:19
18 lines
1123 bytes
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@solan.unit.no -- juul@norunit.bitnet -- Arne.H.Juul@sintef.no --  
--                This disclaimer intentionally left blank             --
Technical Details
Message-ID: <1990Jun28.221927.6823@idt.unit.no>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!nuug!sigyn.idt.unit.no!solan15.solan.unit.no!arnej

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!nuug!sigyn.idt.unit.no!solan15.solan.unit.no!arnej
From: arnej@solan15.solan.unit.no (Arne Henrik Juul)
Newsgroups: comp.std.c
Subject: Multibyte character constants????
Keywords: Hackers of the world, unite!
Message-ID: <1990Jun28.221927.6823@idt.unit.no>
Date: 28 Jun 90 22:19:27 GMT
Sender: news@idt.unit.no (Usenet news admin)
Reply-To: arnej@solan1.solan.unit.no
Organization: Norwegian Institue of Technology
Lines: 18