[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Programming question: sizeof struct?

On Sat, Jul 10, 1999 at 11:26:19PM +1000, Hamish Moffatt wrote:
> Or even 8, since an int is 32 bits.

int can be anything from 16 bits up.  In fact, I believe we have
architectures where int is 64 bits.  Do *not* depend on the size of int!

%%% Antti-Juhani Kaijanaho % gaia@iki.fi % http://www.iki.fi/gaia/ %%%

   "... memory leaks are quite acceptable in many applications ..."
    (Bjarne Stroustrup, The Design and Evolution of C++, page 220)

Reply to: