fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int* p = (int*) malloc(4);
  5. int a[1];
  6. printf("%x %x %x %x %x %x %x %x", p, &p, a, &a, a+1, &a[1], p+1, &p[0]);
  7. free(p);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
80cf9010 489b51c8 489b51c0 489b51c0 489b51c4 489b51c4 80cf9014 80cf9010