#include <stdio.h>
#include <stddef.h>
typedef struct {
long long ll;
int i;
short s;
char ch1;
char ch2;
} Tipo;
int main(void) {
Tipo var = { .ll = 1000000000000, .i = 1000, .s = 10, .ch1 = 'a', .ch2 = 's' };
printf("%lld\n", *((long long*)(((char*)&var
) + offsetof(Tipo
, ll
)))); }
//http://pt.stackoverflow.com/q/183287/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRkZWYuaD4KCnR5cGVkZWYgc3RydWN0IHsKICAgIGxvbmcgbG9uZyBsbDsKICAgICBpbnQgaTsKICAgICBzaG9ydCBzOwogICAgIGNoYXIgY2gxOwogICAgIGNoYXIgY2gyOwp9IFRpcG87IAoJCmludCBtYWluKHZvaWQpIHsKICAgIFRpcG8gdmFyID0geyAubGwgPSAxMDAwMDAwMDAwMDAwLCAuaSA9IDEwMDAsIC5zID0gMTAsIC5jaDEgPSAnYScsIC5jaDIgPSAncycgfTsKCXByaW50ZigiJWxsZFxuIiwgdmFyLmxsKTsKCXByaW50ZigiJWlcbiIsIHZhci5pKTsKCXByaW50ZigiJWRcbiIsIHZhci5zKTsKCXByaW50ZigiJWNcbiIsIHZhci5jaDEpOwoJcHJpbnRmKCIlY1xuIiwgdmFyLmNoMik7CglwcmludGYoIiVsbGRcbiIsICooKGxvbmcgbG9uZyopKCgoY2hhciopJnZhcikgKyBvZmZzZXRvZihUaXBvLCBsbCkpKSk7CglwcmludGYoIiVpXG4iLCAqKChpbnQqKSgoKGNoYXIqKSZ2YXIpICsgb2Zmc2V0b2YoVGlwbywgaSkpKSk7CglwcmludGYoIiVkXG4iLCAqKChzaG9ydCopKCgoY2hhciopJnZhcikgKyBvZmZzZXRvZihUaXBvLCBzKSkpKTsKCXByaW50ZigiJWNcbiIsICooKGNoYXIqKSgoKGNoYXIqKSZ2YXIpICsgb2Zmc2V0b2YoVGlwbywgY2gxKSkpKTsKCXByaW50ZigiJWNcbiIsICooKGNoYXIqKSgoKGNoYXIqKSZ2YXIpICsgb2Zmc2V0b2YoVGlwbywgY2gyKSkpKTsKfQoKLy9odHRwOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8xODMyODcvMTAx