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 / 475.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  682KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: Typedefs 75 on the STACK. If it is full, a value of -1 is returned to indicate that the attempt to push the element on the STACK was not successful Note 7 If space still available in the C array, the value of top adjusted and the element is placed in the array. The return value of o indicates success. Note that the actual parameter push) should be the address of 1STACK instead of an uninitia alized STACK variable Note 8 The function pop () checks for underf flow before popping an element from the STACK The value returned if the STACK is empty Because STACK has been implemented as an array of type char and the popped value is returned by pop value that could not possibly be part of the array must be returned in case of failure to pop value Since the value is not char value, it was chosen as ...