Complete C Language Notes for Self Study
1. Introduction to C Programming
- What is C Language? History and Features
- Structure of a C Program
- Compiling and Running a C Program
- Basic Syntax and Rules
2. Data Types and Variables
- Primary Data Types: int, float, char, double
- Variable Declaration and Initialization
- Constants and Keywords
- Type Modifiers: short, long, signed, unsigned
3. Operators and Expressions
- Arithmetic, Relational, Logical Operators
- Assignment, Increment/Decrement
- Conditional (Ternary), Bitwise, sizeof
- Operator Precedence and Associativity
4. Input and Output
- Using printf() and scanf()
- Format Specifiers
- getchar(), putchar(), gets(), puts()
5. Control Statements
- if, if-else, nested if
- switch-case, break, continue
- Loops: while, do-while, for
- Nested Loops and Loop Control
Complete C Language Notes for Self Study
6. Arrays and Strings
- One-Dimensional Arrays
- Two-Dimensional Arrays (Matrices)
- String Handling: strlen, strcpy, strcat, strcmp
- Character Arrays and String Input/Output
7. Functions
- Function Declaration, Definition and Calling
- Types: With/Without Arguments and Return
- Recursion in C
- Scope and Lifetime of Variables
8. Pointers
- Introduction to Pointers and Syntax
- Pointer Arithmetic
- Pointers with Arrays and Strings
- Pointers with Functions and Dynamic Memory Allocation
9. Structures and Unions
- Defining and Using Structures
- Arrays of Structures
- Nested Structures
- Unions and Differences from Structures
10. File Handling in C
- Opening and Closing Files
- Reading and Writing Files (fscanf, fprintf, fgetc, fputc)
- File Modes: r, w, a, etc.
- Error Handling and feof()