Guest User

Untitled

a guest
Apr 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. struct teste {
  4.  
  5. unsigned int a0 : 1;
  6. unsigned int a1 : 1;
  7. unsigned int a2 : 2;
  8. unsigned int a3 : 4;
  9.  
  10. };
  11.  
  12. struct teste1 {
  13.  
  14. unsigned int a0 : 1;
  15. unsigned int a1 : 1;
  16. unsigned int a2 : 2;
  17. unsigned int a3 : 4;
  18.  
  19. } __attribute__((__packed__));
  20.  
  21. int main(int argc, char *argv[]) {
  22.  
  23. struct teste t1;
  24. struct teste1 t2;
  25.  
  26. return 0;
  27. }
Add Comment
Please, Sign In to add comment