🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2032

Re: Why Use `Int` Instead

#2032
From: Martin Ambuhl
Date: Fri, 16 Feb 1996 15:28
22 lines
1109 bytes
Mongkok <jyetse@undergrad.math.uwaterloo.ca> in
<4fu84r$9f9@solutions.solon.com> wrote:

>  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. And

no.  sizeof(int) >= sizeof(char).
It is possible that each is implemented as if at least 16 bits.

>the size of long int must be strictly bigger than short int,

no. sizeof(long) >= sizeof(short).
It is possible that each is implemented as if at least 32 bits.

>and must be bigger than or equal to int.

right.

                                                                                                              
--
* Martin Ambuhl       net: mambuhl@ripco.com
* Chicago, IL (USA)    
Technical Details
Message-ID: <4g27rr$qct@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: mambuhl@ripco.com (Martin Ambuhl)
Newsgroups: comp.lang.c.moderated
Subject: Re: Why Use `Int` Instead
Date: 16 Feb 1996 09:28:59 -0600
Organization: Ripco Communications, Inc.
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4g27rr$qct@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com