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
note describes the following topics: Beginning With C, Input/output, Control Statements, Loops, Arrays and Strings,
Data Types, Functions, Pointers, Structures, File Manipulation.
C is a
relatively small language, but one which wears well. Topics covered includes: Basic Data
Types and Operators, Statements and Control Flow, Functions and Program
Structure, Basic I/O, Operators, Strings.
C probably has been the most influential programming language
during the last 25 years. It was originally introduced for the implementation of
UNIX, but is now used for a large variety of very different tasks. This note
will introduce the C programming language in the context of the UNIX operating
system. It will also cover UNIX from a user and a programmer perspective.