fork download
  1. #include <stdio.h>
  2. #define bool_t int
  3.  
  4. struct Response {
  5. bool_t error;
  6. float result;
  7. };
  8. typedef struct Response Response;
  9.  
  10. int main() {
  11. Response y;
  12. y.result = 5.7;
  13. y.error = 0;
  14. printf("y.error's size: %d bit\n",sizeof(y.error));
  15. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
y.error's size: 4 bit