C PROGRAMMING BASICS NOTES
1. Introduction to C
C is a general-purpose programming language used for system and application development.
2. Structure of C Program
- #include
- int main() { ... }
3. Data Types
int, float, char, double
4. Variables
Used to store data values.
5. Input/Output
printf() and scanf()
6. Operators
Arithmetic, Relational, Logical
7. Conditional Statements
if, else, switch
8. Loops
for, while, do-while
9. Functions
Reusable blocks of code
10. Arrays
Collection of similar data types
11. Pointers
Stores memory address of variables
12. Importance of C
Base for many programming languages and useful for system programming.