fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. int result[10][7];
  6.  
  7. int row = sizeof(result) / sizeof(result[0]);
  8. int column = sizeof(result[0])/sizeof(int);
  9.  
  10. printf("Number of rows: %d\n", row);
  11. printf("Number of columns: %d\n", column);
  12.  
  13. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
Number of rows: 10
Number of columns: 7