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 / 511.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-19  |  740KB  |  2550x3300
Labels: book | reckoner
OCR: Storage Class and Scope of Multidimensional Arrays 511 As an example of the use of arrays, an investor is following six stocks that he owns He wants program that will compare the to current have the prices original of his prices six stocks stored with the price at which he bought them He wants in the program and he will enter the current prices. We could use two- -dimensional array for the stock prices The array might have rows and columns. The row (index 0 would be initialized with the original prices of F the six stocks. The second row would be entered at time of exe- cution. Each column in the array would store the two relevant prices of one of the stocks been written Example The 9-2, the program has been blocked out and the input have function been left has ope, and functions process a ...