FULL UNIT-WISE NOTES – C Programming
UNIT 1 – INTRODUCTION TO C
• Features of C: structured, portable, fast, middle-level. • Keywords: 32 total. • Constants & Variables:
integer, float, char. • Data Types: int, float, char, double. • Operators: Arithmetic, Logical, Relational,
Bitwise. • Flow of Execution & Program Structure.
UNIT 2 – DECISION MAKING & LOOPING
• if, if-else, nested if, switch-case. • Loops: for, while, do-while. • Break, continue, goto. • Pattern
programs using nested loops.
UNIT 3 – ARRAYS
• 1-D arrays, initialization, traversal. • 2-D matrices, matrix addition, subtraction, transpose. • Common
operations: largest number, smallest number. • Searching in arrays.
UNIT 4 – SEARCHING & SORTING
• Linear Search: sequential checking. • Binary Search: requires sorted array. • Bubble Sort: adjacent
swaps, O(n²). • Selection Sort: smallest element first. • Insertion Sort: inserts in correct position.
UNIT 5 – FUNCTIONS
• Function declaration, definition, call. • Call by value vs reference. • Passing arrays to functions. •
Scope: local, global variables. • Recursion introduction.
UNIT 6 – RECURSION
• Base case required. • Factorial, Fibonacci recursion. • Recursion vs iteration. • Stack usage during
recursion.
UNIT 7 – STRUCTURES
• User-defined data type. • Structure declaration & initialization. • Array of structures. • Nested
structures. • Difference between structure & union.
UNIT 8 – POINTERS
• Definition: stores memory address. • Pointer arithmetic: p++, p--. • Pointers & arrays relationship. •
Pointer to pointer. • Pointers with functions (call by reference).