We shall take no responsibility for any type of claim for loss of data or for any other issues originating from the use of or problems with this website (including claims for monetary damages), either directly or indirectly.

#include <stdio.h>

int main(int argc, char *argv[])
{
    int l;
    short s;
    char c;

    l = 0xdeadbeef;
    s = l;
    c = l;

    printf("l = 0x%x (%d bits)\n", l, sizeof(l) * 8);
    printf("s = 0x%x (%d bits)\n", s, sizeof(s) * 8);
    printf("c = 0x%x (%d bits)\n", c, sizeof(c) * 8);

    return 0;
}