home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_01 / 026.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-02  |  741KB  |  2550x3300
Labels: book | bulletin board | crt screen | monitor | poster | reckoner
OCR: Chapter Getting Started A Word of Caution As will be seen in Chapters and 10 scanf() is a multipurpose input function. Like most multipurpose input functions It can return unex ipected values the input does not exactly match the conversion specifications An exercise below addresses this fact Learning Activities Syno Execute the program inputl.c to make sure that it works as you expected by Discovery Experiment with erroneous inputs to inputl ,c For example, type alphabetic characters instead of digits 1T or type digits and Obje nondigits intermixed. TIL typing a few blanks tabs before between, and after the digits Describe what happens in each case in part Try to generalize the behavior of scanf() for each case n part Add the declaration of another variable of type int to inputl. .C #inclu ...