C Language Notes - B.
Tech 1st Year CSE
1. Introduction to C Programming
- History and features of C
- Structure of a C program
- Compilation and Execution process
- Keywords, Identifiers
- Variables and Constants
- Data Types (int, float, char, double)
- Basic Input/Output: scanf(), printf()
2. Operators and Expressions
- Arithmetic, Relational, Logical, Assignment Operators
- Increment/Decrement, Conditional (Ternary) Operator
- Operator Precedence and Associativity
3. Control Structures
- Conditional: if, if-else, nested if, switch case
- Loops: while, do-while, for
- Special: break, continue, goto
4. Functions
- Declaration, Definition
- Call by Value, Call by Reference
- Recursion
- Storage Classes: auto, static, extern, register
C Language Notes - B.Tech 1st Year CSE
5. Arrays
- One-Dimensional, Two-Dimensional Arrays
- Character Arrays (Strings)
- String Functions: strlen(), strcpy(), strcat(), strcmp()
6. Pointers
- Introduction, Arithmetic
- Pointers with Arrays, Functions
- Pointers to Pointers
- Dynamic Memory Allocation: malloc(), calloc(), free()
7. Structures and Unions
- Structure Declaration, Initialization
- Array of Structures, Nested Structures
- Union vs Structure, typedef, enum
8. File Handling
- File Operations: fopen(), fclose(), fscanf(), fprintf(), fgetc(), fputc()
- Reading/Writing Files
- File Modes: r, w, a, etc.
Sample Programs
1. Hello World
C Language Notes - B.Tech 1st Year CSE
2. Prime Number Checker
3. Factorial using Recursion
4. Matrix Addition & Multiplication
5. Sorting (Bubble Sort)
6. File read/write