fork 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. }
  12.  
  13. //https://pt.stackoverflow.com/q/161038/101
Success #stdin #stdout 0s 4464KB
stdin
Standard input is empty
stdout
2, 21915
5, 5