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-05 11:34

>>13
In other words, ints are at least two bytes, longs are at least four bytes, and both can be longer than that depending on your implementation.

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