fork(1) download
  1. #include <stdio.h>
  2. #include <stddef.h>
  3. #include <stdint.h>
  4.  
  5. typedef struct {
  6. void *p1; void *p2; void *p3; void *p4; void *p5; void *p6; void *p7; void *p8;
  7. void *p9; void *p10; void *p11; void *p12; void *p13; void *p14; void *p15;
  8. uint16_t x;
  9. uint16_t array[];
  10. } dummy_struct;
  11.  
  12. int main(void) {
  13. printf("%d %d\n", sizeof(dummy_struct), offsetof(dummy_struct, array));
  14. return 0;
  15. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
64 62