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

WARNING: BLOAT

Name: Anonymous 2008-02-05 9:06

SICKENING, SIRS, SICKENING
AN INT TAKES THE SAME AMOUNT OF MEMORY AS A LONG!!

YOU CAN TEST IT YOURSELF !!

WARNING:THIS WILL DISGUST YOU

#include <stdio.h>
#include <stdlib.h>

int main()
{
    char c;
    int i;
    long l;

    printf( "A char is this big: %d\n", sizeof(c) );
    printf( "An int is this big: %d\n", sizeof(i) );
    printf( "A long is this big: %d\n", sizeof(l) );
}

Name: Anonymous 2008-02-06 4:35

>>57
Your point being what? CHAR_BIT only says how many bits are in a char. It's still one byte.

Or to put it differently, since perhaps if I use some BBCode it'll sink in:

The number of bits in a byte (#define CHAR_BIT) is entirely independent of the number of bytes in a char (which is ALWAYS one).

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