1Introduction to C programming language and basics (5 Hrs)
1.1
Evolution of programming languages
1.2
History, characteristics and applications of C
1.2.1
History of C
1.2.2
Characteristics of C
1.2.3
Applications of C
1.3
Structure of a C program
1.4
Compilation and execution process of a C program
1.5
C Tokens
1.5.1
Keywords
1.5.2
Identifiers
1.5.3
Constants
1.5.4
String literals
1.5.5
Operators
1.6
Variables
1.6.1
Declaration
1.6.2
Initialization
1.6.3
Scope
1.6.4
Lifetime
1.7
Data Types
1.7.1
Basic data types (int, char, float, double, void)
1.7.2
Derived data types
1.7.3
User-defined data types
1.8
Type Casting
1.8.1
Implicit type conversion
1.8.2
Explicit type conversion
1.9
Operators and Expressions
1.9.1
Arithmetic
1.9.2
Relational
1.9.3
Logical
1.9.4
Bitwise
1.9.5
Assignment
1.9.6
Increment/decrement
1.9.7
Conditional (ternary)
1.9.8
Special operators
1.9.8.1
sizeof
1.9.8.2
comma
1.9.8.3
address-of
1.9.8.4
dereference
1.9.9
Operator precedence and associativity
2Input/Output and Control Structures (11 Hrs)
2.1
Standard Input and Output Functions
2.1.1
Formatted I/O: printf() and scanf()
2.1.2
Unformatted I/O Functions: Character I/O
2.1.2.1
getchar()
2.1.2.2
putchar()
2.1.2.3
getch()
2.1.2.4
getche()
2.1.2.5
putch()
2.2
Control Structures
2.2.1
Decision Making Statements
2.2.1.1
if statement
2.2.1.2
if-else statement
2.2.1.3
Nested if-else statement
2.2.1.4
else-if ladder
2.2.1.5
switch statement
2.2.1.6
Conditional operator (? :)
2.2.2
Looping Statements
2.2.2.1
while loop
2.2.2.2
do-while loop
2.2.2.3
for loop
2.2.2.4
Nested loops
2.2.3
Jump Statements
2.2.3.1
break statement
2.2.3.2
continue statement
2.2.3.3
goto statement
3Functions, Arrays and String (11 Hrs)
3.1
Functions
3.1.1
Introduction to functions
3.1.1.1
Advantages
3.1.1.2
Function definition
3.1.1.3
Function declaration/prototype
3.1.2
Function call
3.1.3
Types of functions
3.1.3.1
Library functions
3.1.3.2
User-defined functions
3.1.4
Function arguments
3.1.4.1
Call by value
3.1.4.2
Call by reference
3.1.5
Recursion
3.1.5.1
Concepts
3.1.5.2
Examples
3.2
Arrays
3.2.1
Introduction to arrays
3.2.1.1
Declaration
3.2.1.2
Initialization
3.2.1.3
Accessing elements
3.2.2
One-dimensional arrays
3.2.2.1
Processing
3.2.2.2
Examples
3.2.3
Two-dimensional arrays
3.2.3.1
Declaration
3.2.3.2
Initialization
3.2.3.3
Accessing elements
3.2.3.4
Matrix operations
3.2.4
Multi-dimensional arrays
3.2.5
Arrays and functions
3.3
Strings
3.3.1
Introduction to strings
3.3.1.1
Declaration
3.3.1.2
Initialization
3.3.2
String input/output
3.3.2.1
gets()
3.3.2.2
puts()
3.3.3
String handling functions
3.3.3.1
strlen()
3.3.3.2
strrev()
3.3.3.3
strcpy()
3.3.3.4
strupr()
3.3.3.5
strlwr()
3.3.3.6
strcmp()
3.3.3.7
strcat()
3.3.4
Array of strings
4Structures, Unions, and Enumerations (5 Hrs)
4.1
Structures and Unions
4.1.1
Defining and declaring structures
4.1.2
Accessing members, including nested structures and arrays of structures
4.1.3
Passing structures to functions
4.1.4
Defining and declaring unions
4.1.5
Comparison of unions with structures
4.2
Enumerations (Enums) and typedef implementation
4.2.1
Enumerations (Enums)
4.2.2
typedef implementation
5Pointers and Memory Management (5 Hrs)
5.1
Pointer declaration, initialization, and dereferencing
5.2
Pointer arithmetic
5.3
Pointers with arrays, string, function, structure
5.3.1
Pointers with arrays
5.3.2
Pointers with string
5.3.3
Pointers with function
5.3.4
Pointers with structure
5.4
Dynamic memory allocation
5.4.1
malloc()
5.4.2
calloc()
5.4.3
realloc()
5.4.4
free()
5.5
DMA with structure
5.6
Dangling pointers and memory leaks
5.6.1
Dangling pointers
5.6.2
Memory leaks
6File Handling, Command-Line Arguments, and Graphics (11 Hrs)
6.1
File Handling
6.1.1
Concepts of files (text vs. binary) and file operations
6.1.1.1
Text vs. binary files
6.1.1.2
Opening files
6.1.1.3
Closing files
6.1.1.4
Reading files
6.1.1.5
Writing files
6.1.2
File modes and standard I/O functions
6.1.2.1
File modes
6.1.2.2
fgetc()
6.1.2.3
fputc()
6.1.2.4
fgets()
6.1.2.5
fputs()
6.1.2.6
fprintf()
6.1.2.7
fscanf()
6.1.2.8
fread()
6.1.2.9
fwrite()
6.1.3
Random access (fseek, ftell, rewind) and error handling
6.1.3.1
fseek()
6.1.3.2
ftell()
6.1.3.3
rewind()
6.1.3.4
Error handling
6.2
Command-Line Arguments
6.2.1
Introduction to main() function parameters (argc, argv)
6.2.2
Passing and accessing arguments from the command line
6.3
Graphics in C
6.3.1
Introduction to graphics programming (basic concepts, graphics modes)
6.3.1.1
Basic concepts
6.3.1.2
Graphics modes
6.3.2
Drawing primitives: Points, lines, and common geometric shapes
6.3.2.1
Points
6.3.2.2
Lines
6.3.2.3
Rectangles
6.3.2.4
Circles
6.3.2.5
Ellipses
6.3.2.6
Arcs
6.3.2.7
Polygons
6.3.3
Managing colors and fill styles for graphical output
6.3.4
Displaying and formatting text in graphics mode
6.3.5
Fundamentals of simple animation
6.3.5.1
Clearing the screen
6.3.5.2
Redrawing elements
6.3.5.3
Using delays
7Laboratory work (48 Hrs)
7.1
Practical component and session expectations
7.1.1
Reinforce theoretical concepts through hands-on programming exercises
7.1.2
Minimum of 48 hours (3 hours/week for 16 weeks) dedicated to practical sessions
7.1.3
Students are expected to complete assignments on a weekly basis
7.2
General Instructions for Practical Sessions
7.2.1
Familiarization with a C IDE
7.2.1.1
Code::Blocks
7.2.1.2
Visual Studio Code with GCC
7.2.1.3
Eclipse CDT
7.2.1.4
Dev-C++
7.2.1.5
Turbo C++
7.2.2
Understanding the compilation and execution process
7.2.3
Debugging techniques
7.2.4
Emphasis on practical application for complex topics, especially Pointers and File Handling, to ensure thorough understanding
7.3
List of Practical Concepts to implement (with enhanced emphasis)
7.3.1
Fundamental Programming Constructs
7.3.1.1
Implement programs demonstrating basic input/output, arithmetic operations, and data type conversions
7.3.1.2
Apply various operators (arithmetic, relational, logical, bitwise, conditional) in expressions
7.3.2
Control Flow Mechanisms (Practical Emphasis)
7.3.2.1
Gain practical proficiency in utilizing conditional statements (if, if-else, switch) to control program flow based on various conditions
7.3.2.2
Implement and analyze iterative solutions using while, do-while, and for loops for repetitive tasks
7.3.2.3
Demonstrate the effective use of jump statements (break, continue, goto) for specific control transfers
7.3.3
Functions and Modularity (Practical Emphasis)
7.3.3.1
Design and implement modular programs using user-defined functions, focusing on effective argument passing (call by value, call by reference) and return types
7.3.3.2
Explore practical applications of recursive problem-solving approaches
7.3.4
Array and String Manipulation (Practical Emphasis)
7.3.4.1
Gain hands-on experience performing various operations on one-dimensional, two-dimensional, and multi-dimensional arrays, including searching, sorting, and matrix operations
7.3.4.2
Implement practical solutions involving string input/output and proficiently utilize standard string handling functions
7.3.4.3
Work effectively with arrays of strings for real-world data representation
7.3.5
Pointers and Dynamic Memory (Strong Practical Emphasis)
7.3.5.1
Develop robust programs demonstrating core pointer concepts, including declaration, initialization, and dereferencing
7.3.5.2
Master pointer arithmetic and deeply understand the relationship between pointers and arrays/strings for efficient memory access
7.3.5.3
Gain comprehensive practical experience in dynamic memory management using malloc(), calloc(), realloc(), and free() for flexible data structures
7.3.6
Structured Data Types
7.3.6.1
Define and manipulate structures, including nested structures, arrays of structures, and pointers to structures
7.3.6.2
Utilize unions and understand their memory implications
7.3.6.3
Implement programs using enumerated types
7.3.7
File Operations (Practical Emphasis)
7.3.7.1
Achieve practical competence in performing fundamental file operations (create, open, read, write) on both text and binary files
7.3.7.2
Implement formatted and block I/O operations for efficient data handling with files
7.3.7.3
Navigate and manipulate file pointers for random access within files
7.3.7.4
Effectively incorporate error handling mechanisms for reliable file operations
7.3.8
Command-Line Interaction
7.3.8.1
Develop programs that accept and process command-line arguments
7.3.9
Basic Graphics Programming
7.3.9.1
Initialize graphics mode and draw fundamental shapes like points, lines, rectangles, circles, and ellipses
7.3.9.2
Experiment with colors and fill patterns
7.3.9.3
Display and format text within graphics output
7.3.9.4
Implement simple animation sequences
8Required readings
8.1
Balagurusamy, E. (n.d.). Programming in ANSI C (Latest ed.). Tata McGraw-Hill Education.
8.2
Deitel, P. J., & Deitel, H. M. (n.d.). C how to program (Latest ed.). Pearson Education.
8.3
Kernighan, B. W., & Ritchie, D. M. (n.d.). The C programming language (Latest ed.). Prentice Hall.
8.4
Prata, S. (n.d.). C primer plus (Latest ed.). Pearson Education.