C Programming - Short Notes
1. Variables and Data Types
Variables store data values. C supports int, float, char, and more.
2. Operators
C provides arithmetic (+, -, *, /, %), relational (==, !=, >, <), logical (&&, ||, !), and assignment operators.
3. Control Structures
Includes if, if-else, switch-case for decision making; for, while, and do-while for looping.
4. Functions
Reusable blocks of code. Types: with/without arguments and return values.
5. Arrays
Collection of similar data types. Indexing starts at 0.
6. Pointers
Stores address of variables. Use * and & operators.
7. Structures and Unions
User-defined data types that group different data types together. Structures store all members separately,
unions share memory.
8. File Handling
Use fopen, fclose, fprintf, fscanf, etc., to read/write files.
9. Preprocessor Directives
C Programming - Short Notes
Handled before compilation. Examples: #include, #define, #if.
10. Recursion
Function calling itself with a base case to stop recursion.