C
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() |