home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 703.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  546KB  |  2550x3300
Labels: book | reckoner | sky
OCR: and OOP Polymorphism 703 12.4 C++ Funct ion Protot ypes Note 1 double sum double double The PRECOND ITION none POSTCONDITION: the return value is the sum of and differ- Note over int sum( int array[] int have n or more cells ism PRECONDITION: array must POSTCONDITION: the return value is array. the sum of the first cells in in the int main int an array[] 5 12 same doubl 12 netion to ormal the cout "The sum and enal; Note 3 sum cri cout "The sum( an sum of array, the first four endl; elements of an array Note 4 return with with double sum() Note doub le sum( doubl double vith return f * * int sum() ** Note // int sum( int array[] int int the sum for int the sum return the sum, Running the Program The uns of and is 98. .992 Prototvpes nction