#include #define ROWS 5 #define COLS 4 int main(void) { double table [ROWS][COLS] = {{ 3.1, 5.5, 2.7, 19.3}, { 0.2, 15.4, 16.9, -3.0}, { 7.2, 5.4, 18.0, 13.7}, {17.8, 15.4, 18.6, 3.0}, { 7.1, -5.4, 8.7, 333.3}}; double min_el = table[0][0], max_el = table[0][0]; double *table_ptr = &table[0][0]; int i, count; count = sizeof(table) / sizeof(double); for(i = 0; i < count; i++){ double *dptr = (table_ptr + i); if (*dptr < min_el) min_el = *dptr; if (*dptr > max_el) max_el = *dptr; }; printf("\nThe minimun element is %f, and the maxium is %f\n\n", min_el, max_el); return 0; }