#include #include #include int main() { #define ROWS 2 #define COLS 4 int array[ROWS][COLS] = { { 1, 2, 3, 4 }, { 5, 6, 7, 8 } }; int array1d[ROWS*COLS] = { 1, 2, 3, 4, 5, 6, 7, 8 }; for (int i=0; i