What is C – part 2
Contents

What is C? – Part 2: Intermediate Concepts

In Part 1, you likely learned the basics of the C programming language — such as data types, variables, operators, and simple input/output.
Now, in Part 2, we will explore intermediate concepts of C that are essential for building real programs.
Part 2: Key Topics in C Programming
1⃣ Control Statements (if, else, switch)
These are used to control the flow of the program based on conditions.
2⃣ Loops (for, while, do-while)
Loops allow repeated execution of code blocks.
3⃣ Functions
Functions are blocks of code designed to perform specific tasks.
4⃣ Arrays
Arrays are used to store multiple values of the same type.
5⃣ Pointers (Introduction)
Pointers store the address of a variable. This is a powerful concept in C.
Other Important Concepts
Concept | Description |
---|---|
Structures | Used to group different types of variables |
File Handling | To read/write from/to files |
Recursion | A function calling itself |
Preprocessor Directives | Commands like #include , #define |
Example Program – Function & Loop
Tip for Learners:
-
Practice writing small programs like calculator, table printing, and sorting arrays.
-
Use an online compiler like replit.com or ideone.com.
Would you like a Part 3 covering advanced topics like pointers to functions, dynamic memory, or file I/O?