Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C is shit

Name: Anonymous 2011-11-30 19:50

Why have short and int if by the standard they end up being the same size number of bits.


Is the following correct:

char        => 8 bits
short       => 16 bits
int         => 16 bits
long        => 32 bits
long long   => 64 bits

float       => 32 bits
double      => 64 bits
long double => 128 bits


whats the point of short?

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-01 14:51

>>24
my type model has
1.more concise types(2 chars vs 4-18)
2.standard length types(2 bytes for ints)
3.type size embedded in type(u[bytes])
4.type identifier embedded in type(u[nsigned integer],s[igned integer],f[loat])
5.simplifies changing type system-wide: just change the relevant type defines.
6.types can be #undef'ed and #define'd for any code block of any length

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List