fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int A[] = {12, 23, 34, 45, 56, 67, 78, 89, 90};
  6.  
  7. int *P = A;
  8.  
  9. printf("%d\n", *P+2);
  10. printf("%d\n", *(P+2));
  11. printf("%p\n", &P+1);
  12. printf("%p\n", &A[4]-3);
  13. printf("%p\n", A+3);
  14. printf("%p\n", &A[7]-P);
  15. printf("%p\n", P+(*P-10));
  16. printf("%d\n", *(P+*(P+8)-A[7]));
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
14
34
0x7fff69999730
0x7fff69999734
0x7fff6999973c
0x7
0x7fff69999738
23