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