fork download
  1. #include <stdio.h>
  2.  
  3. int main (void){
  4. int mat [5][5],i,j;
  5. int *p;
  6. p = &mat [0][0];
  7. for (i=0;i<5;i++)
  8. for (j=0;j<5;j++)
  9. mat[i][j] = i+j;
  10. printf ("%d\t", sizeof(mat)); i=4;j=5;
  11. printf( "%d", *(p+i+j));
  12. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
100	5