fork(2) download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. typedef union {
  5. uint8_t half:4;
  6. struct {
  7. unsigned NORTH:1;
  8. unsigned EAST:1;
  9. unsigned SOUTH:1;
  10. unsigned WEST:1;
  11. } bits;
  12. } Direction;
  13.  
  14. int main(void) {
  15. printf("%d\n", sizeof(Direction));
  16. return 0;
  17. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
4