FE1008 Computing Lesson 5 Standard Library Functions (Reference: Harry H. Cheng, Chapter 6, 9, 12) Dr. Tan Chee Wah, Wesley (School of EEE) Email: [email protected]Office: S1-B1b-54 Phone: 6790 6009 “Be Prepared, Give Feedback”
Subscribe to view the full document.
5-2 The C Standard Library Functions are thebuilding blocksof C programs. e.g.printf(), scanf(), sqrt() Visual C++ (other C systems as well) provides a rich collection of powerful functions known as the C Standard Library for our use.
5-3 Header Files The library has a set of associated header files such asstdio.h. These contain • prototypesof functions in the library (Prototypes will be covered in a later lesson). . •macrodefinitions • other programming elements. To use a function (e.g. printf( )), we need to include the corresponding header file (stdio.h for printf( )).