Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mtndew!friedl From: friedl@mtndew.Tustin.CA.US (Stephen Friedl) Newsgroups: comp.lang.c Subject: Re: sizeof() confusion Message-ID: <567@mtndew.Tustin.CA.US> Date: 9 Nov 90 15:48:54 GMT References: <9156@latcs1.oz.au> <27432@mimsy.umd.edu> <2665@cirrusl.UUCP> Organization: VSI*FAX Tech Ctr, Tustin, CA Lines: 17 In article <2665@cirrusl.UUCP>, dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes: > While we're on the subject of sizeof surprises, here is one that did > genuinely throw me off: > > /* other stuff deleted */ > > printf("sizeof (char) = %d\n", sizeof (char)); Hey, if you're using LPI C on the UNIX PC, it prints zero! Stephen -- Stephen J. Friedl, KA8CMY / I speak for me only / Tustin, CA / 3B2-kind-of-guy +1 714 544 6561 / friedl@mtndew.Tustin.CA.US / {uunet,attmail}!mtndew!friedl LPI C is for people who don't actually intend to write software