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