fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6. int *p = (int *)malloc(2 * sizeof(int));
  7.  
  8. *p = 2;
  9. *(p + 1) = *(p) - 1;
  10. *p = p[1];
  11.  
  12. printf("%d",*p);
  13. free(p);
  14. return 0;
  15. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
1