fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char bytes22[22];
  5. printf ("22 / 4 = %d\n",(int *)(&bytes22)[1] - (int *)bytes22);
  6. char bytes45[45];
  7. printf ("45 / 4 = %d\n",(int *)(&bytes45)[1] - (int *)bytes45);
  8.  
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 4356KB
stdin
Standard input is empty
stdout
22 / 4 = 5
45 / 4 = 11