C - Programming Language Tutorial

Chapter 1: Introduction to C Programming


1.1 History and Features of C

1.2 Structure of a C Program

1.3 Compilation and Execution Process

1.4 Basic Syntax and main() Function

1.5 Header Files and Comments

 

Chapter 2: Variables, Data Types and Operators


2.1 Data Types: int, float, char, double

2.2 Constants and Literals

2.3 Variables and Declaration Rules

2.4 Type Conversion and Type Casting

2.5 Operators: Arithmetic, Relational, Logical, Bitwise, Assignment

 

Chapter 3: Input and Output Operations


3.1 printf() and scanf() Functions

3.2 Format Specifiers

3.3 Character I/O: getchar(), putchar()

3.4 Reading Strings: gets(), puts(), fgets()

3.5 Escape Sequences and Formatting

 

Chapter 4: Control Statements


4.1 Decision Making: if, if-else, else-if Ladder

4.2 Nested if and switch Statement

4.3 Looping Statements: for, while, do-while

4.4 Loop Control: break, continue, goto

4.5 Example Programs using Loops and Conditions

 

Chapter 5: Arrays and Strings


5.1 Introduction to Arrays

5.2 One-Dimensional and Two-Dimensional Arrays

5.3 Array Initialization and Traversal

5.4 Strings in C and String Handling Functions

5.5 Common String Operations: Copy, Compare, Concatenate

 

Chapter 6: Functions in C


6.1 Function Declaration, Definition and Calling

6.2 Call by Value vs Call by Reference

6.3 Recursion

6.4 Scope and Lifetime of Variables

6.5 Storage Classes: auto, extern, static, register

 

Chapter 7: Pointers


7.1 Introduction to Pointers

7.2 Pointer Arithmetic

7.3 Pointers and Arrays

7.4 Pointers to Functions

7.5 Pointers and Dynamic Memory Allocation

 

Chapter 8: Structures and Unions


8.1 Structure Definition and Declaration

8.2 Accessing Structure Members

8.3 Nested Structures and Arrays of Structures

8.4 Introduction to Unions

8.5 Structures vs Unions

 

Chapter 9: File Handling in C


9.1 File Operations: open, close, read, write

9.2 File Pointers and File I/O Functions (fopen(), fscanf(), fgets())

9.3 Reading and Writing Text/Binary Files

9.4 fprintf() and fscanf()

9.5 Error Handling in File I/O

 

Chapter 10: Dynamic Memory Allocation


10.1 Memory Management Functions: malloc(), calloc(), realloc(), free()

10.2 Difference Between Static and Dynamic Allocation

10.3 Use Cases in Arrays and Linked Data Structures

10.4 Memory Leaks and Best Practices

 

Chapter 11: Preprocessor Directives and Macros


11.1 #include, #define, and Conditional Compilation

11.2 Macros with Arguments

11.3 File Inclusion and Header Files

11.4 Undefining Macros

11.5 Use Cases of Preprocessor Directives

 

Chapter 12: Mini Projects and Applications


12.1 Project 1: Student Record Management (File-based)

12.2 Project 2: Simple Calculator using Functions

12.3 Project 3: Library Management or Inventory System

12.4 Project 4: Bank Account System (Structures & Files)

12.5 Final Project Presentation and Evaluation

Exit mobile version