home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_08 / 493.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  599KB  |  2550x3300
Labels: binder | book | daybook | reckoner
OCR: 8.8 Pointers to Functions 493 to the #inc lude <stdio. h the fact #inc lude <stdlib h> Note "ameters #incl lude <str ing h> tem #def ine NUMELTS to the struct member fourth char *name ting int age, nas been of 10 that Functi ion Protot ypes Note 2 int compare ints( const void *a, const void +b); PRECOND TION: and are pointers to the objects be ing ion) compared unction ion POSTCONDITION: gsort() requi res, the value returned i less than *b, 1 and *j are equal, and greater than int compa re age( const void X const void *y PRECONDITION: and are pointers to the objects being compa ired POSTCONDITION: as gsort() requi res, the value retu rned if the age in iess than if the the age age in in h if greater the ages than are that equal, in and ints, name name int compare name const void X, const v ...