delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/12/13:16:25

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Pointers
Date: Sat, 12 Oct 1996 11:55:47 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 19
Message-ID: <325FE9B3.13AB@cs.com>
References: <53oa2v$kr4 AT miracle DOT cybernex DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp107.cs.com
Mime-Version: 1.0
To: mrichman AT cybernex DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

mrichman AT cybernex DOT net wrote:
> 
> Is it safe to assume that all pointer variables take up the same
> number of bytes, or is that compiler dependent.

16-bit compilers will use 16-bit pointers, and 32-bit compilers will use
32-bit pointers.  Figuring out which is which is left as an exercise for
the programmer.  :)

Remember, ANSI only provides that short <= int <= long, but does not
dictate the size of int.  Pointers are almost always int-sized, so you
can't assume anything about them.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Plan:  To find ANYONE willing to |   http://www.cs.com/fighteer   |
| play Descent 2 on DWANGO!        | Tagline: <this space for rent> |
---------------------------------------------------------------------

- Raw text -


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