home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_09 / 509.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-19  |  712KB  |  2550x3300
Labels: book | crt screen | daybook | jotter | reckoner
OCR: 9 Two -Dimensional Arrays 509 Note 2 for ROWS i++ for COLUMNS: j++ 1 [3] posi- pr scanf int Pos it &m[i] ion [j] i+1, i+1 Note 3 array of Note 4 determinant m[0] [0] m[1][1] m[0] [1] m[1][0] pri intf( The determ nant &8 2f\n determi nant return an array ok part of The program consists of the single function main ( Calls to printf() inside are aring float and set used of nested prompt for the loops user does for the input input. and give Calculation the result. of the call to determinant scanf is done with single assignment statement Note 1. The variable em isa two-dimensional array off loat values It has two rows and two columns. Both the row and column indices will go from 0 to Note 2: The follow ing nested for loops are used to access each element in the two- -dimensional array The outer ...