| COURSE CONTENT: |
Elements of a C program C keywords Expressions Statements Statement Blocks Function Blocks
Writing, Compiling and Linking a C Program Comments on C Header Files The main ( ) function Command line arguments (argv and argc) The printf ( ) function
The Standard C Library
Recommended C Programming Style
C Data Types Elementary Data Types; char, int, float, double Defining Variables in C Elementary Operators
Assignment Addition sizeof Addresses vs. Contents of Variables; lvalue and rvalue Using printf ( ) Data Type Modifiers; unsigned, signed, long, short
Operators and Selection Statements More arithmetic operators Relational operators Bitwise operators Shorthand form of operators If statements Logical operators The switch statement The break keyword Precedence of operators
Loops The goto statement and labels While loops Do . . . while loops For loops Infinite loops with break The continue statement
Function Prototyping Prototyping in C Definition vs. Declaration Types of prototype No arguments Variable arguments Fixed number of arguments
Storage Classes and Scope Local scope Global scope Static variables External variables Register variables Initialisation of variables
Introduction to Pointers Defining a pointer variable The asterisk Scalars
The Concept of Indirection Using a pointer in an assignment Rules for pointers Pointers and Arrays Arrays of char Null pointers Incrementing and decrementing pointers Pointers as arguments to functions
More Advanced Techniques with Pointers Using equality and relational operators with pointers Pointer arithmetic Multi-dimensional arrays Using arrays of pointers Allocating memory at run time calloc the cast operator Pointers to functions Right-left rule for complex data types
Structures, Unions and Other Data Types Structures Unions Enum data type Typedefs The cast operator (revisited) Bit fields
Disk File Operations Opening and closing a file Reading and writing a file Reading and writing binary files File positioning The C Preprocessor Macro substitution using # define, #undef Using parameters in Macros #include Conditional Compilation #if, #ifdef, #endif
PG07/01 |