C Programming Notes
1. Introduction to C
• History of C
• Features of C
• Structure of a C program
• Compilation and execution process
2. Basic Concepts
• Character set, tokens, keywords, identifiers
• Data types (int, float, char, double, void)
• Constants and variables
• Input/Output functions (printf, scanf)
3. Operators in C
• Arithmetic operators (+, -, *, /, %)
• Relational operators (>, <, >=, <=, ==, !=)
• Logical operators (&&, ||, !)
• Assignment operators (=, +=, -=, etc.)
• Increment/Decrement operators (++, --)
• Bitwise operators (&, |, ^, <<, >>, ~)
• Special operators (sizeof, comma, pointer *, address &)
4. Control Statements
• Conditional statements (if, if-else, nested if, switch)
• Looping statements (for, while, do-while)
• Jump statements (break, continue, goto)
5. Arrays & Strings
• One-dimensional arrays
• Two-dimensional arrays (matrices)
• Strings and string handling functions (strlen, strcpy, strcmp, etc.)
6. Functions
• Defining and calling functions
• Function arguments (call by value vs call by reference)
• Recursion
7. Pointers
• Basics of pointers
• Pointer arithmetic
• Pointers and arrays
• Pointers to pointers
• Pointers and functions
8. Structures & Unions
• Defining structures
• Accessing structure members
• Nested structures
• Difference between structure and union
9. File Handling
• File operations (fopen, fclose, fprintf, fscanf, fgets, fputs)
• Modes of file handling (read, write, append)
10. Dynamic Memory Allocation
• malloc(), calloc(), realloc(), free()
11. Preprocessor Directives
• #include, #define, macros
• Conditional compilation