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