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