FE1008-L05 - FE1008 Computing Lesson 5 Standard Library...

This preview shows page 1 - 7 out of 30 pages.

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”
Image of page 1

Subscribe to view the full document.

5-2 The C Standard Library Functions are the building blocks of 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.
Image of page 2
5-3 Header Files The library has a set of associated header files such as stdio.h . These contain prototypes of functions in the library (Prototypes will be covered in a later lesson). . macro definitions • other programming elements. To use a function (e.g. printf ( ) ), we need to include the corresponding header file ( stdio.h for printf ( ) ).
Image of page 3

Subscribe to view the full document.