C Topics Covered |
| |
| |
|
Syntax |
~
~
~ |
Compilers
Errors
Commenting your code |
| |
| C Basics |
~
~
~
~
~
~
~
~
~
~
~
~
~ |
History of C
Characteristics of C
Character set
Identifier
Underline ( Underscore ‘_' )
Keywords
We need Data and A Program
Constants
Operators
Some Terminology
Data Types
Printing Out and Inputting Variables
Escape Sequence
Exercise |
| |
|
Control Constructs |
~
~
~
~
~
~
~
~
~ |
if statement
else statement
else if statement
Nesting of if Block
For statement
While statement
Infinite loops
Programming Examples
Exercise |
| |
| Remaining Control Constructs |
~
~
~
~
~
~
~ |
goto statement
break statement
continue statement
switch statement
do-while statement
Programming Example
Exercise |
| |
| 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 |
| |
|
Strings |
~
~
~
~
~
~ |
What are strings
Reading a single character
Reading a line of text [string]
String handling functions
Programming examples
Exercise |
| |
|
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 |
| |
| Strings |
~
~
~
~
~
~ |
What are strings
Reading a single character
Reading a line of text [string]
String handling functions
Programming examples
Exercise |
| |
| PHASE - III |
| |
| 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 |
| |
| 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 |
| |
| C Preprocessors |
~
~
~
~ |
Preprocessor Directives
File Inclusion
Macro Substitution
Exercise |
| |
| C Standard Libraries and Header Files |
~
~
~
~
~
~ |
Header Files
Is the use of header file absolutely necessary?
Standard Library
Character conversion :
Time Functions :
Exercise |
| |
| |