fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x = 1;
  5. x++;
  6. int *y = &x;
  7. y++;
  8. printf("%d, %d\n", x, *y);
  9. int z = 5;
  10. printf("%d, %d\n", z, *y);
  11. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
2, -4905556
5, 5