|
1) |
Syntax
|
| |
Compilers |
| |
Errors
|
| |
Commenting
your code |
| |
|
| 2 |
C Basics |
| |
History
of C
|
| |
Characteristics
of C
|
|
Character set |
| |
Identifier
|
|
Underline (
Underscore ‘_'
)
|
| |
Keywords
|
|
We need Data and A Program |
| |
Variables
|
| |
Constants
|
| |
Operators
|
| |
Some Terminology |
| |
Data Types |
| |
Printing Out and Inputting Variables |
| |
Escape Sequence |
| |
Exercise |
| |
|
| 3) |
Control Constructs |
| |
if statement
|
| |
else statement
|
| |
else if statement
|
| |
Nesting of if Block |
| |
For statement |
| |
While statement |
| |
Infinite loops
|
| |
Programming Examples |
| |
Exercise |
| |
|
| 4) |
Remaining Control Constructs |
| |
goto statement |
| |
break statement |
| |
continue statement |
| |
switch statement |
| |
do-while statement
|
| |
Programming Example |
| |
Exercise |
| |
|
| 5) |
Arrays |
| |
Declaring Arrays |
| |
Initializing Array |
| |
Printing Arrays |
| |
Taking Input for Arrays
|
| |
Character Arrays |
| |
Array Dimensions |
| |
Initializing 2D Array |
| |
Array Sizes [size of operator] |
| |
Programming Examples |
| |
Exercise |
| |
|
| 6) |
Strings |
| |
What are strings |
| |
Reading a single character |
| |
Reading a line of text [string]
|
| |
String handling functions
|
| |
Programming examples |
| |
Exercise |
| |
|
| 7) |
Functions |
| |
Defining a function |
| |
Calling a function
|
| |
Default return
type and type void |
| |
Argument (Parameter)
|
| |
Categories of functions |
| |
Function Prototype
|
| |
Recursion |
| |
Scope and lifetime of a variable |
| |
Storage Classes |
| |
Automatic variable(internal or
local variable) |
| |
External Variabel( Global Variable) |
| |
Static Variable
|
| |
Register variable |
| |
Scope rule of a function
|
| |
Passing an array to a function |
| |
Programming Examples |
| |
Exercise |
| |
|
| 8) |
Strings |
| |
What are strings
|
| |
Reading a single character
|
| |
Reading a line of text [string]
|
| |
String handling functions |
| |
Programming examples
|
| |
Exercise |
| |
|
| 9) |
Functions |
| |
Defining a function |
| |
Calling a function |
| |
Default return type and type void |
| |
Argument (Parameter) |
| |
Categories of functions |
| |
Function Prototype |
| |
Recursion |
| |
Scope and lifetime of a variable
|
| |
Storage Classes |
| |
Automatic variable(internal or
local variable) |
| |
External Variabel( Global Variable) |
| |
Static Variable |
| |
Register variable |
| |
Scope rule of a function |
| |
Passing an array to a function |
| |
Programming Examples |
| |
Exercise |
| |
|
| |
PHASE
- III |
| 10) |
Structures and Unions |
| |
Structures |
| |
Defining a structurs
|
| |
Accessing structure members |
| |
Operations on structures |
| |
Structure Initialization |
| |
typedef
|
| |
Arrays of structure |
| |
Arrays as structure members (fields) |
| |
Sending an entire structure as
parameter to a function |
| |
Unions
|
| |
Defining a Union |
| |
Initializing Unions
|
| |
Arrays of Union variables
|
| |
Unions inside structures |
| |
Final Remark on unions |
| |
Programming Examples |
| |
Exercise |
| |
|
| 11) |
Pointers |
| |
What is a pointer |
| |
Where is a pointer stored |
| |
‘&'- The “Address
Of” operator
|
| |
what a pointer points to
|
| |
Accessing Variables
value using
Pointers |
| |
Pointer Arithmetic |
| |
Equivalence between Pointer and
Arrays |
| |
Pointer to an Array |
| |
Modifying Variables using pointers |
| |
Call by reference |
| |
Arrays of pointers |
| |
Arrays of char pointers |
| |
Pointers to functions |
| |
Pointers to structures |
| |
Passing pointer to structure
to function |
| |
Structure within structure |
| |
Pointers to pointers |
| |
Programming Examples |
| |
Exercise |
| |
|
| 12) |
C Preprocessors |
| |
Preprocessor Directives |
| |
File Inclusion |
| |
Macro Substitution |
| |
Exercise |
| |
|
| 13) |
C Standard Libraries and Header
Files |
| |
Header Files |
| |
Is the use of header file absolutely
necessary?
|
| |
Standard Library |
| |
Character conversion
: <ctype.h> |
| |
Time Functions
:<time.h> |
| |
Exercise |
| |
|
| |
|