fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3. #include <stddef.h>
  4.  
  5. struct S {
  6. uint32_t i;
  7. uint32_t i2;
  8. };
  9.  
  10. int main(void) {
  11. printf("%tu %tu\n", offsetof(struct S, i), offsetof(struct S, i2));
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
0 4