COMPLETE C PROGRAMMING TRAINING COURSE DESCRIPTION
A hands-on introduction to programming in the ANSI C programming language. The
course initially moves at a fast pace in order to spend as much time as possible
on the subject of pointers - the area which cause the most bugs in C programs.
WHAT WILL YOU LEARN
* Write ANSI C programs
* Use the C libraries
* Debug C programs
* Examine existing code and determine its function.
COMPLETE C PROGRAMMING TRAINING COURSE DETAILS
* Who will benefit:
Programmers wishing to learn C.
Programmers wishing to learn C++ or Java.
* Prerequisites:
None, although experience in another high level language would be useful.
* Duration
5 days
COMPLETE C PROGRAMMING TRAINING COURSE CONTENTS
* Getting started
The compilation process, comments, main(), statement blocks, printf().
* C data types and operators
char, int, float and double, qualifiers, arithmetic and assignment operators,
precedence, Associativity.
* Basic I/O
C libraries, stdin and stdout, getchar(), putchar(), printf() formatting.
* Flow control
if else, dangling elses, else if, while and for loops. switch statements, the
null statement, break, continue and gotos.
* Functions
Function calls, arguments and return types, function declarations
(prototypes), function definitions, scope of variables.
* The preprocessor
Preprocessor actions, macros, #include. Libraries and their relationship with
header files. Conditional compilation.
* More data types and operators
Logical, bitwise and other operators, type conversion, casting, typedefs and
access modifiers.
* Arrays
Declaring and handling arrays, common gotchas, multidimensional arrays.
* Pointers
What are pointers? Why they are so important, declaring and using
pointers,The three uses of the *,pointer example - scanf, pointers as
arguments.
* More pointers
Golden rules of pointers and arrays, pointers to arrays, pointer arithmetic,
arrays of pointers, multiple indirection.
* Character/string manipulation
Arrays of characters, string definition, working with strings, String
library.
* Program arguments
argc and argv, example uses,char *argv[] versus char ** argv.
* Program structure and storage classes
Globals (externals), multi source programs, the look of a C program.
* Structures
Declaration, the . and - operators, unions and bitfields.
* Library functions
File handling, fopen and fclose, reading from and writing to files,
fseek().calloc() and malloc()