This note explains all the common features and techniques for
the C language. The coverage is pretty quick, so it is most appropriate for
someone with some programming background who needs to see how C works. Topics
include variables, int types, floating point types, promotion, truncation,
operators, control structures (if, while, for), functions, value parameters,
reference parameters, structs, pointers, arrays, the pre-processor, and the
standard C library functions.
This
course note provides a thorough introduction to the C programming language, the
workhorse of the UNIX operating system and lingua franca of embedded processors
and micro-controllers.
Beginners and professional programmers alike will benefit
from the numerous examples and extensive exercises developed to guide readers
through each concept. Step-by-step dissections of program code illuminate the
correct usage and syntax of C language constructs and reveal the underlying
logic of their application. The clarity of exposition and format of the book
make it an excellent reference on all aspects of C.