Path: 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 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 --