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

Re: not enough real programmers? (was Re: Byte Magazine: 18 Vintage issues, 1985-1986)



Chris Brown posted:
> In article <37bb3ef9.24418394@news.shuswap.net>,
> Gene Wirchenko <genew@shuswap.net> wrote:
> >>Not really, just use unsigned longs.
> >
> >     I believe it would be a conforming implementation of C to have
> >short, int, and long all be 16 bits.
> 
> Then I believe you believe wrong. :-)

I may be wrong, but I believe you believe he believes wrong
wrong.

In C++, [the size of, for all] a char is smaller than or equal to
a short, which is smaller than or equal to an int, which is
smaller than or equal to a long (so a char and a long *can* have
the same size) - and AFAIR C is generally less restrictive than
C++.

IIRC, this has been discussed here not so long ago.