fork(2) download
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3. #include<stdint.h>
  4.  
  5. struct a{
  6. uint32_t x:1;
  7. uint32_t y:31;
  8. };
  9.  
  10.  
  11.  
  12. int main(void) {
  13. struct a a={.y=1, .x=1};
  14. printf("%d\n",a.y);
  15. a.y=1;
  16. printf("%d\n",a.y);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 4468KB
stdin
Standard input is empty
stdout
1
1