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 + 2;
  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 0s 5296KB
stdin
Standard input is empty
stdout
1, 3
2, 4
3, 5