Article View: comp.lang.c.moderated
Article #1988Re: Why Use 'Int' Instead of 'Long'? (With today's compilers)
From: Dan Pop
Date: Thu, 15 Feb 1996 15:03
Date: Thu, 15 Feb 1996 15:03
22 lines
1434 bytes
1434 bytes
In <4fu84r$9f9@solutions.solon.com> Mongkok <jyetse@undergrad.math.uwaterloo.ca> writes: > The size of pointers varies from machine to machine, but the >size of an int is defined in ANSI to be at least 2 chars. Huh??? Chapter and verse, please. An int can be very well _one_ char as far as the standard is concerned, if CHAR_BIT is at least 16. >And >the size of long int must be strictly bigger than short int, >and must be bigger than or equal to int. More nonsense. A long int can be also _one_ char, if CHAR_BIT is at least 32. An implementation where all the integer types (from char to long) have the same size is definitely legal and such implementations do exist. Dan -- Dan Pop CERN, CN Division Email: danpop@mail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
Technical Details
Message-ID:
<4fvi0q$e9k@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4fjk00$nss@solutions.solon.com> <4fjp0k$p6m@solutions.solon.com> <4fp1o2$h99@solutions.solon.com> <4fu84r$9f9@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: danpop@mail.cern.ch (Dan Pop) Newsgroups: comp.lang.c.moderated Subject: Re: Why Use 'Int' Instead of 'Long'? (With today's compilers) Date: 15 Feb 1996 09:03:54 -0600 Organization: CERN European Lab for Particle Physics Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4fvi0q$e9k@solutions.solon.com> References: <4fjk00$nss@solutions.solon.com> <4fjp0k$p6m@solutions.solon.com> <4fp1o2$h99@solutions.solon.com> <4fu84r$9f9@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Newsreader: NN version 6.5.0 #7 (NOV)