Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!ncar!asuvax!stjhmc!p12.f56.n114.z1.fidonet.org!Chris.Gehlker From: Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C int size Message-ID: <30468.274B6655@stjhmc.fidonet.org> Date: 20 Nov 90 13:01:47 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ Lines: 18 leyser@nitrex.UUCP (Jeff Leyser) Writes: > In post <1278@ucl-cs.uucp>, J.Pearce@cs.ucl.ac.uk says: > ! > !Could someone please tell how MPW C represents a "plain" int - > !is it 2 or 4 bytes. > > I don't have MPW. But compile and run this: > > main() { > printf("An int is %d bytes\n",sizeof(int)); > } Just to end the suspense, it's 4 bytes. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org