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 / 024.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-02  |  807KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: Chapter Getting Started Input with scanf0 The function scanf from the C library does formatted input. scanf) con- verts input from the ASCII representation entered at the keyboard to the internal Obje representation used by the computer. It reads sequence of characters entered by a user and converts them to a value of the requested type More specifically, told to read decimal integer, scanf looks for a sequence of decimal digits and converts them to an integer value Like pr ntf) output, scanf() can be used to input many different nc lude things In this section, we will use it to input values of type int scanf similar to printf in other ways. Both are functions in the int main standard library The first argument to both functions control string with embedded conversion specifications and bo ...