[ create a new paste ] login | about

Link: http://codepad.org/noqD6r65    [ raw code | output | fork ]

sakhar - C, pasted on Dec 22:
// author: Sakhar Alkhereyf

#include <stdio.h>
struct A{
    int x;
    char z;
    short y;
    char w;
};


struct B{
    int x;
    char z;
    char w;
    short y;
};

int main()
{
    printf("Hello, World!\n");
    printf("size of A: %d\n", sizeof(struct A));
    printf("size of B: %d\n", sizeof(struct B));
    //
    return 0;
}


Output:
1
2
3
Hello, World!
size of A: 12
size of B: 8


Create a new paste based on this one


Comments: