fork(2) download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. static union { uint32_t x; uint16_t y[3]; } u;
  5.  
  6. int main(void)
  7. {
  8. printf("sizeof uint16_t : %zu\n", sizeof(uint16_t));
  9. printf("sizeof uint32_t : %zu\n", sizeof(uint32_t));
  10. printf("sizeof u : %zu\n", sizeof u);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
sizeof uint16_t : 2
sizeof uint32_t : 4
sizeof u : 8