C Programming Guide
1. Introduction to C
- History and background
- Features of C
- Structure of a C program
- Compilation process
2. Data Types and Variables
- Basic data types (int, char, float, double)
- Type modifiers (short, long, signed, unsigned)
- Declaring and initializing variables
3. Operators in C
- Arithmetic operators
- Relational and logical operators
- Assignment, increment/decrement
- Bitwise and conditional operators
4. Control Statements
- if, if-else, nested if
- switch-case
- Loops: for, while, do-while
- break and continue
5. Functions
- Syntax and declaration
- Function call, return type
- Recursion
- Call by value vs call by reference
6. Arrays and Strings
- 1D and 2D arrays
- String manipulation
- Common string functions (strlen, strcpy, strcmp, etc.)
7. Pointers
- Pointer basics and syntax
- Pointer arithmetic
- Pointers and arrays
- Pointers to functions
8. Structures and Unions
- Structure declaration and initialization
- Nested structures
- Difference between structures and unions
9. File Handling
- Opening/closing a file
- Reading/writing to files
- Modes (r, w, a, r+, etc.)
10. Common C Programs
- Factorial, Fibonacci
- Palindrome check
- File copy program
- Swapping using pointers
11. Best Practices
- Use of comments
- Proper indentation
- Avoiding magic numbers
- Memory management