C Contents
C Contents
C contents
Total Duration 45 Days
C Basics 3 Days
History of C
Characteristics of C
C Program Structure
Variables
Defining Global Variables
Printing Out and Inputting Variables
Constants
Arithmetic Operations
Comparison Operators
Logical Operators
Order of Precedence
Exercises
Conditionals statements 9 days
The if statement
The ? operator
The switch statement
Exercises
goto statement
Looping and Iteration
The for statement
The while statement
The do-while statement
break and continue
Exercises
Arrays and Strings 5 days
Single , Double and Multi-dimensional Arrays
Strings
Exercises
Functions 3 days
void functions
Functions and Arrays
Function Call
Recursion
Function Prototyping
Exercises
Further Data Types 3days
Structures
Defining New Data Types
Unions
Datapro
C contents
Coercion or Type-Casting
Enumerated Types
Static Variables
Exercises
Pointers 2 days
What is a Pointer?
Pointer and Functions
Pointers and Arrays
Arrays of Pointers
Multidimensional arrays and pointers
Static Initialisation of Pointer Arrays
Not assigning a pointer to memory address before using it
Dangling pointer
Memory Leak
Exercise
Dynamic Memory Allocation and Dynamic Structures 1 day
Malloc, Sizeof, and Free
Calloc and Realloc
Exercises
Advanced Pointer Topics 2 day
Pointers to Pointers
Command line input
Pointers to a Function
Exercises
Low Level Operators and Bit Fields 1 day
Bitwise Operators
Bit Fields
Bit Fields: Practical Example
A note of caution: Portability
Exercises
The C Preprocessor 1 day
#define
#undef
#include
#if -- Conditional inclusion
Preprocessor Compiler Control
Other Preprocessor Commands
Exercises
Structure and union 2days
Pointers to Structures