/* Course Number : CIS-112 Project # 2 - 1 and 2 dim arrays **********************************************************************/ #include // Preprocessor Directives #include #include #include #include void main() { void pass1_fcn (int inum[]) ; // [] can be empty or contain 5 int inum1[] = {2,4,3,5,1} ; // [] can be empty or contain 5 cout << "Print out 2 numbers from a 1-dim array. \n" ; cout << inum1 [0] << endl << inum1 [4] << endl ; cout << "***********************************\n" ; pass1_fcn (inum1) ; // call a function and pass an array (address) //************************ int 2 dimension arrays ************** int array2 [2][4] = {0} ; // create a 2 dimensional int array cout << "\nStart the 2-dim array with all zeros and print out a cell.\n" ; cout << array2 [1][2] << endl << "***********************************\n" ; void pass2_fcn (int inum2[2][3]) ; // [][3] will also work: define the function int inum2 [2][3] = {{2,4,6},{1,3,5}} ; // define the array and load it. cout << "\nPrint out 2 elements of the 2-dim array.\n" ; cout << inum2 [0][0] << " " << inum2 [1][1] << endl ; pass2_fcn ( inum2) ; // call a function and pass the array address. //************************ char 1 dimension array **************************** char name [6] = {' '} ; cout << "\nPrinting out a byte from a table.\n"; cout << "z" << name[2] << "z" << name[0] << "z" <