fork download
  1.  
  2. #include <stdio.h>
  3. struct test
  4. {
  5. unsigned int x,z;
  6. long int y:33;
  7. //unsigned int z;
  8. };
  9. int main()
  10. {
  11. struct test t;
  12. unsigned int *ptr1 = &t.x;
  13. unsigned int *ptr2 = &t.z;
  14. printf("%d", ptr2 - ptr1);
  15. return 0;
  16.  
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:6:4: error: width of 'y' exceeds its type
    long int y:33;
    ^
stdout
Standard output is empty