Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct teste {
- unsigned int a0 : 1;
- unsigned int a1 : 1;
- unsigned int a2 : 2;
- unsigned int a3 : 4;
- };
- struct teste1 {
- unsigned int a0 : 1;
- unsigned int a1 : 1;
- unsigned int a2 : 2;
- unsigned int a3 : 4;
- } __attribute__((__packed__));
- int main(int argc, char *argv[]) {
- struct teste t1;
- struct teste1 t2;
- return 0;
- }
Add Comment
Please, Sign In to add comment