OT: Language for the ages

der Mouse mouse at Rodents.Montreal.QC.CA
Mon Oct 17 00:36:19 CDT 2005


>> Er, how big is an int?  a pointer?
> In ANSI C, [...].  A pointer is big enough to hold an address to any
> type.

A pointer is big enough to hold whatever information is necessary to
find and operate on any object of the pointed-to type, plus at least
one special value which does not point to any object of that type.

It may or may not bear any visible relationship to any addresses the
underlying hardware may have, and it may or may not be the same size or
representation as a pointer to some other type.  (Though pointer to
void must be large enough to store any other pointer type without
information loss.  For various reasons, pointer to char ditto.)

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse at rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


More information about the cctalk mailing list