C Programming syllabus
BIT10211 units · 106 topicsAcademic year 2083/84
Browse the units
1Introduction (3 Hrs.)
- 1.1
History and advantages of C
- 1.2
Problems analysis, algorithm and flowchart
- 1.3
Structure of a C
- 1.4
Program
- 1.5
Writing, compiling, debugging, executing and testing a C Program in windows and
- 1.6
Unix/Unix like environment
2Elements of C (3 Hrs.)
- 2.1
C Tokens
- 2.2
C Character Sets
- 2.3
Data types, Constants and Variables
- 2.4
Expression, statements and
- 2.5
comments
- 2.6
Escape sequences and Delimiters
3Input/output function (2 Hrs.)
- 3.1
Conversion Specifiers
- 3.2
I/O functions
- 3.3
Formatted I/O
4Operators and Expression (4 Hrs.)
- 4.1
Arithmetic operators
- 4.2
Relational operators
- 4.3
Logical operators
- 4.4
Assignment operators
- 4.5
Type
- 4.6
conversion in assignment
- 4.7
Increment and decrement operators
- 4.8
Ternary operator
- 4.9
Bitwise
- 4.10
operator
- 4.11
Other operators (comma, sizeof)
- 4.12
Expression evaluation
- 4.13
Operator precedence and
- 4.14
associativity
5Control Structures (8 Hrs.)
- 5.1
Introduction to selection and iterative statements
- 5.2
GOTO and labels
- 5.3
Selection statements: if,
- 5.4
if..else, if..else if ladder, nested if, switch case
- 5.5
Conditional operator
- 5.6
Iterative statement: For
- 5.7
Loop, While Loop, Do while Loop, Nested Loop
- 5.8
The odd loop
- 5.9
Controlling the loop execution –
- 5.10
break and continue
6Arrays and Strings (5 Hrs.)
- 6.1
Introduction to Arrays
- 6.2
Initializing Arrays
- 6.3
The meaning of array indexing
- 6.4
One dimensional and
- 6.5
Multidimensional Arrays
- 6.6
String and Basic functions dedicated to string manipulation
7Functions (6 Hrs.)
- 7.1
Introduction and types of functions
- 7.2
Declaring, Defining and calling functions
- 7.3
Arguments and
- 7.4
Return Statement
- 7.5
Recursive functions
- 7.6
Function call by value and reference
- 7.7
Variables' scope,
- 7.8
local variables and function parameters
- 7.9
Arrays as function parameter
- 7.10
Void as a parameter
- 7.11
Parameterizing the main function
- 7.12
External function and variables
- 7.13
Header files
- 7.14
Static variables
- 7.15
Register Variables
8The C Preprocessor (2 Hrs.)
- 8.1
Features of C Preprocessor
- 8.2
Macro Expansion
- 8.3
Macros with Arguments
- 8.4
Macros versus
- 8.5
Functions
- 8.6
File Inclusion
- 8.7
Conditional Compilation
- 8.8
#if and #elif Directives
- 8.9
#undef Directive
- 8.10
#pragma Directive
- 8.11
The Build Process
- 8.12
Preprocessing
- 8.13
Compiling
- 8.14
Assembling
- 8.15
Linking
- 8.16
Loading
9Pointers (5 Hrs.)
- 9.1
Introduction of Pointers, declaration and initialization of pointer variables
- 9.2
An address, a
- 9.3
reference, a dereference and the sizeof operator
- 9.4
Pointer to nothing (NULL)
- 9.5
Pointer assignment
- 9.6
Pointer Arithmetic
- 9.7
Pointer as argument and Pointer as return values
- 9.8
Pointers vs. arrays
- 9.9
Dynamic memory allocation
10Structure and Unions (5 Hrs.)
- 10.1
Definition of Structure
- 10.2
Array of structures
- 10.3
Passing structure and array of structure to function
- 10.4
Pointers to structures and arrays of structures
- 10.5
Self-referential structures
- 10.6
Typedef
- 10.7
Table
- 10.8
Lookup
- 10.9
Unions
11File Handling (2 Hrs.)
- 11.1
Files vs. streams; Header files needed for stream operations; Opening and closing a stream, open
modes, errno variable; Reading and writing to/from a- 11.1.1
stdin, stdout
- 11.1.2
and stderr
- 11.1.3
Stream manipulation: fgetc(), fputc(), fgets() and fputs() functions
- 11.1.4
Raw input/output:
- 11.1.5
fread() and fwrite() functions
- 11.1.6
Random access to files
- 11.2
Laboratory Works- 11.2.1
Laboratory work emphasizes the verification of programming concepts learned in class
- 11.2.2
Therefore, each unit should include sufficient practical lab exercise
- 11.3
Text / Reference Books- 11.3.1
1. Let Us C, Yashavant P. Kanetkar
- 11.3.2
2. Brian Kernighan and Dennis Ritchie, The C Programming Language
- 11.3.3
3. Byron Gottfried, Programming with C, McGraw Hill Education
- 11.3.4
Digital Logic