home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_04 / 248.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  579KB  |  2550x3300
Labels: book | crt screen | reckoner
OCR: 248 Chapter 4 Arrays and Pointers Example 4-15 ssort.c sscrt Obj Synopsis ective To the Decl lares illustrate and both the before initializes Selection and an after Sort array sorting Di splays Include Files #include <stdio. .h> Constant Definit ons #def ine ARRAY SIZE 10 Funct: .ons Declarations void print PRECONDIT ION array( No di int have size sp at changes layed arrayil, the least on to the int number 1 the ze size of terminal program cells ) cells that scr values that reen are in The should array val be lues should zed in POSTCONDITION: disp array Layed with on indices the terminal through screen size-l have been void Sel .ect ionSort( int array[], int size PRECONDITION of array the rray the to array. be sorted size is the number elements POSTCONDITION: array sorted from smallest to ...