Course Overview
Introduction
Some C Basics
-
An Approach to Program Design
Step 1 - Undertand the problem
Step 2 - Do a hand example
Step 3 - Write the algorithm
Step 4 - Translate to C
Step 5 - Test the program
Program Output
Manual Program Trace
Precedence and Associativity of Operators
Debug Lines
The cast Operator
Program Input
Errors in C Programs
Defining Functions
Repeating Computations
Looping Construct
Counting loop
Special Data Value
End of File
I/O Redirection
Test Condition - if statements
C Preprocessor
Macros - #define
Header files - #include
Conditional compilation - #ifdef
Separate Compilation
Summary
A Top Down Example
Character Data
A Large Project
Numeric Processing
Some Style Points
Pointers
Arrays
Strings
2 Dimensional Arrays
The Standard C Library