Mail Archives: djgpp/1996/10/12/13:16:25
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 -