delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/01/16:09:31

Date: Sun, 1 Mar 98 23:02:05 PST
From: Noam Rotem <nrotem AT johnbryce DOT co DOT il>
Subject: int being 2 or 4 bytes long
To: djgpp AT delorie DOT com
Message-ID: <Chameleon.980301230613.nrotem@netvision.netvision>
MIME-Version: 1.0

Maybe it's trivial, but why is there a data type which its size can be different in 
different compilers? I refer to 'int'. Why can it be 2 or 4 bytes, depending on the 
implementation? What's the logic?

---------------------------------------------
Noam Rotem
John Bryce Training Centre
Tel Aviv, Israel.
03-7535803
=============================================
1. Take upon yourself an impossible mission.
2. Accomplish the mission.
3. Go back to step 1.

It's the only sane answer to modern life.

---
01/03/98
23:02:05

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019