fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. float mat[3][3] = {
  6. {0, 0, 0},
  7. {0, 0, 0},
  8. {1, 2, 3}
  9. };
  10. // pointer fp (points to memory location of mat[2])
  11. const float *fp = mat[2];
  12. //printf(mat[2]);
  13. printf("Value of fp = %lf\n",fp[2]);
  14. }
  15.  
Success #stdin #stdout 0s 5504KB
stdin
Standard input is empty
stdout
Value of fp = 3.000000