#include <stdio.h>
typedef struct {
unsigned char a : 1;
unsigned char b : 7;
} Tipo;
int main(void) {
Tipo x = { .a = 1, .b = 64 };
printf("%d e %d\n", x.
a, x.
b); printf("%zd\n", sizeof(Tipo
)); }
//http://pt.stackoverflow.com/q/178733/101
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdCB7CiAgICB1bnNpZ25lZCBjaGFyIGEgOiAxOwogICAgdW5zaWduZWQgY2hhciBiIDogNzsKfSBUaXBvOwoKaW50IG1haW4odm9pZCkgewoJVGlwbyB4ID0geyAuYSA9IDEsIC5iID0gNjQgfTsKCXByaW50ZigiJWQgZSAlZFxuIiwgeC5hLCB4LmIpOwoJcHJpbnRmKCIlemRcbiIsIHNpemVvZihUaXBvKSk7Cn0KCi8vaHR0cDovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMTc4NzMzLzEwMQ==