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 / 225.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  702KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: Dereferencing Pointer Variable 225 Example 4-9 pointer2.c po inter2 C con- Synopsis Accepts input of single character entered value from the keyboard and prints the entered sign- unless was newline. use Objective Illustrates use of NULL and relat onal ad or expressi ions with poi inters some but erat Incl lude <stdio Files h> Note i abil- #incl ude for int main( void files &C; Note 2 int input ptr all printf( "p] lease enter character from the keyboard" printf( or press return input ptr getchar) "\n' Note Note egal input ptr NULL; ition am- input ptr NULL Note ing pr intf "Just return was typed \n" ) else input ptr pri intf( nThe character was entered In" return Variables of type int and int are defined The program prompts for input ofa character and uses and if statements to test the inpu ...