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