Part 1: All Concepts of C Language (in Points)
Here’s a roadmap of concepts in C:
1.
Basics of C
History and features of C
Structure of a C program (#include, main(), { })
Compilation and execution process
2.
Tokens in C
Keywords
Identifiers
Constants (int, float, char, string, etc.)
Variables and data types
Operators (arithmetic, relational, logical, bitwise, assignment, ternary)
3.
Input/Output
printf() and scanf()
Format specifiers (%d, %f, %c, %s, etc.)
Escape sequences (\n, \t, \\, etc.)
4.
Control Statements
if, else, else if
switch-case
goto (rarely used)
5.
Loops
for loop
while loop
do-while loop
break and continue
6.
Functions
Function declaration, definition, and call
Function arguments (call by value, call by reference)
Recursion
7.
Arrays
1D arrays
2D arrays (matrices)
Multi-dimensional arrays
8.
Strings
Character arrays
String functions (strlen, strcpy, strcat, strcmp)
9.
Pointers
Basics of pointers
Pointer arithmetic
Pointers and arrays
Pointers and functions
Pointer to pointer
10.
Dynamic Memory
malloc(), calloc(), realloc(), free()
11.
Structures & Unions
Defining and using structures
Nested structures
Array of structures
Difference between struct and union
12.
Enums & Typedef
enum keyword
typedef for type alias
13.
File Handling
File pointers (FILE *)
Opening and closing files (fopen, fclose)
Reading and writing (fscanf, fprintf, fgets, fputs)
14.
Preprocessor Directives
#include, #define
Macros and constants
Conditional compilation (#ifdef, #ifndef)
15.
Advanced Topics
Command line arguments (argc, argv)
Storage classes (auto, static, extern, register)
Bit manipulation
Memory layout of C program (stack, heap, global, code)
Part 2: 30 C Programming Problems
Beginner (1–10)
1.
Print "Hello, World!"
2.
Take two numbers and print their sum.
3.
Find the area of a circle.
4.
Check whether a number is odd or even.
5.
Find largest of two numbers.
6.
Swap two numbers (using third variable).
7.
Swap two numbers (without third variable).
8.
Find simple interest.
9.
Convert Celsius to Fahrenheit.
10.
Find ASCII value of a character.
Intermediate (11–20)
11.
Find factorial of a number (loop).
12.
Find factorial of a number (recursion).
13.
Generate Fibonacci series.
14.
Check prime number.
15.
Reverse a number.
16.
Palindrome number check.
17.
Armstrong number check.
18.
Sum of digits of a number.
19.
Print multiplication table.
20.
Find largest of three numbers.
Advanced (21–30)
21.
Sort an array (Bubble Sort).
22.
Find largest and smallest element in an array.
23.
Find sum of array elements.
24.
Search element in array (linear search).
25.
Binary search implementation.
26.
Reverse an array.
27.
Matrix addition.
28.
Matrix multiplication.
29.
Count vowels and consonants in a string.
30.
File handling: Write and read student details from a file.