fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. double (*phi)[5];
  6.  
  7. phi = (double[][5]) { { 11, 12, 13, 14, 15 },
  8. { 21, 22, 23, 24, 25 } };
  9.  
  10. printf("%f\n", phi[0][2]);
  11. printf("%f\n", phi[1][2]);
  12.  
  13. phi = (double[][5]) { { 111, 122, 133, 144, 155 },
  14. { 211, 222, 233, 244, 255 } };
  15.  
  16. printf("%f\n", phi[0][2]);
  17. printf("%f\n", phi[1][2]);
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
13.000000
23.000000
133.000000
233.000000