Programming Exercise : Passing a Two-dimensional Array
Write a program that will read in 12 integer values into a 3 times 4 two-dimensional array (i.e., an array of 3 arrays of 4 integers). The values should be entered via standard input.
The main program should then call a function sum that will calculate the sum of the values and return this sum back to the main program.
The main program will output the sum. This program shows that you can successfully pass a two-dimensional array in C.