36 Tutorials Available

C Programming Tutorials

Master C programming with our comprehensive tutorial series. Follow the structured path or jump to any topic you want to learn.

Complete Learning Path

Follow these tutorials in order for the best learning experience

01
Beginner

Getting Started with C Programming

Your first step into C programming! Learn how to install a compiler, set up your computer, and write your very first "Hello World" program. No prior experience needed.

10 min readTutorial
Read
02
Beginner

Basic Syntax in C

Learn the fundamental building blocks of C programs. Understand the main() function, how to write comments, and why proper formatting makes code readable.

12 min readTutorial
Read
03
Beginner

Identifiers in C

Learn the rules for naming things in C - variables, functions, and more. Know what names are valid, and follow naming conventions that professionals use.

10 min readTutorial
Read
04
Beginner

Keywords in C

Learn all 32 reserved words in C that have special meaning. These words are reserved by C and cannot be used as variable names.

12 min readTutorial
Read
05
Beginner

Data Types & Variables

Learn to store different kinds of data: numbers (int), decimals (float), and characters (char). Understand how much memory each type uses.

20 min readTutorial
Read
06
Beginner

Input/Output in C

Make your programs interactive! Learn to display output with printf() and read user input with scanf(). Essential for every C program.

18 min readTutorial
Read
07
Beginner

Escape Characters in C

Master escape sequences like \n (newline), \t (tab), \\ (backslash), and \" (quotes). Essential for formatting output and handling special characters.

15 min readTutorial
Read
08
Beginner

C Operators and Expressions

Learn all the operators in C: math (+, -, *, /), comparisons (==, <, >), and logical operations (&&, ||). Build expressions that compute values.

15 min readTutorial
Read
09
Beginner

Operator Precedence & Associativity

Understand which operators are evaluated first. Learn the PUMAS REBL TAC memory trick and when to use parentheses.

12 min readTutorial
Read
10
Beginner

Control Flow & Decision Making

Make your programs smart! Use if-else to make decisions and switch for multiple choices. Programs can now respond differently to different situations.

18 min readTutorial
Read
11
Beginner

Loops in C

Repeat actions automatically! Master for, while, and do-while loops. Learn which loop to use when, and how to control loops with break and continue.

20 min readTutorial
Read
12
Beginner

Functions in C

Organize code into reusable blocks! Functions let you write code once and use it many times. Learn to create, call, and pass data to functions.

20 min readTutorial
Read
13
Beginner

Static Keyword in C

The static keyword gives variables memory that persists between function calls. Learn how static creates "sticky" variables and private globals.

12 min readTutorial
Read
14
Beginner

Storage Classes in C

Control how variables live and where they are stored. Learn auto, static, register, and extern - the four storage classes in C.

18 min readTutorial
Read
15
Beginner

Arrays in C

Store multiple values of the same type together! Learn 1D arrays (lists), 2D arrays (tables), and how arrays are stored in memory.

22 min readTutorial
Read
16
Beginner

Strings in C

Strings are character arrays ending with \0. Learn to create strings, read them safely, and use string functions like strlen, strcpy, strcmp.

20 min readTutorial
Read
17
Beginner

Enumerations in C

Create named constants for better code readability. Instead of using 0, 1, 2 for days, use MON, TUE, WED with enums.

12 min readTutorial
Read
18
Intermediate

Structures in C

Group related data together! Create your own data types with struct. Store a student's name, age, and grade in one variable.

22 min readTutorial
Read
19
Intermediate

Unions in C

Unions are like structures but all members share the same memory. Useful for saving memory when you only need one field at a time.

15 min readTutorial
Read
20
Advanced

Pointers in C

The most powerful feature in C! Pointers store memory addresses. Learn what they are, why they matter, and how to use them safely.

25 min readTutorial
Read
21
Advanced

Pointer Arithmetic in C

Add and subtract with pointers! Learn how pointer math works with arrays and why ptr++ moves by the size of the data type.

18 min readTutorial
Read
22
Advanced

C Program Memory Layout

See how C programs are organized in RAM! Learn about Stack, Heap, Data, BSS, and Text segments. Essential for understanding memory.

18 min readTutorial
Read
23
Advanced

Dynamic Memory Allocation

Allocate memory at runtime! Use malloc, calloc, realloc, and free. Create arrays whose size you don't know until the program runs.

22 min readTutorial
Read
24
Advanced

Structures and Dynamic Memory

Combine structs with malloc! Create dynamic arrays of structures that grow as needed. Build real data structures.

18 min readTutorial
Read
25
Advanced

File Handling in C

Read and write files! Learn fopen, fclose, fprintf, fscanf, and more. Save data permanently and load it back.

25 min readTutorial
Read
26
Beginner

C stdio.h Library Reference

Complete reference for stdio.h - all printf, scanf, and file functions with prototypes, parameters, and examples.

20 min readTutorial
Read
27
Intermediate

C stdlib.h Library Reference

Complete reference for stdlib.h - memory allocation, string conversion, random numbers, sorting, and program control.

20 min readTutorial
Read
28
Beginner

C string.h Library Reference

Complete reference for string.h - strlen, strcpy, strcat, strcmp, searching, and memory functions.

18 min readTutorial
Read
29
Beginner

C math.h Library Reference

Complete reference for math.h - power, roots, trigonometry, logarithms, and rounding functions.

15 min readTutorial
Read
30
Beginner

C ctype.h Library Reference

Complete reference for ctype.h - character classification (isalpha, isdigit) and conversion (toupper, tolower).

12 min readTutorial
Read
31
Intermediate

C time.h Library Reference

Complete reference for time.h - getting time, formatting dates, measuring durations, and working with timestamps.

18 min readTutorial
Read
32
Advanced

UNIX/Linux System Calls

Interact with the operating system directly! Learn open, read, write, fork, exec, and other system calls that give C its power on UNIX/Linux.

25 min readTutorial
Read
33
Advanced

C Preprocessor Directives

Code that runs before compilation! Learn #include, #define macros, and conditional compilation with #ifdef.

18 min readTutorial
Read
34
Advanced

Recursion in C

Functions that call themselves! Learn this powerful technique, understand how it uses the stack, and know when to use it.

22 min readTutorial
Read
35
Advanced

Function Pointers in C

Store functions in variables! Pass functions as arguments, create callbacks, and build flexible code.

18 min readTutorial
Read
36
Advanced

Bitmasks and Bit Manipulation

Work with individual bits! Set, clear, toggle, and check bits. Implement permission systems and flags efficiently.

18 min readTutorial
Read

🚀 Getting Started

Begin your C programming journey

📝 Basics

Core concepts of C programming

02
Beginner

Basic Syntax in C

Learn the fundamental building blocks of C programs. Understand the main() function, how to write comments, and why proper formatting makes code readable.

12 min readTutorial
Read
03
Beginner

Identifiers in C

Learn the rules for naming things in C - variables, functions, and more. Know what names are valid, and follow naming conventions that professionals use.

10 min readTutorial
Read
04
Beginner

Keywords in C

Learn all 32 reserved words in C that have special meaning. These words are reserved by C and cannot be used as variable names.

12 min readTutorial
Read
05
Beginner

Data Types & Variables

Learn to store different kinds of data: numbers (int), decimals (float), and characters (char). Understand how much memory each type uses.

20 min readTutorial
Read
06
Beginner

Input/Output in C

Make your programs interactive! Learn to display output with printf() and read user input with scanf(). Essential for every C program.

18 min readTutorial
Read
07
Beginner

Escape Characters in C

Master escape sequences like \n (newline), \t (tab), \\ (backslash), and \" (quotes). Essential for formatting output and handling special characters.

15 min readTutorial
Read
08
Beginner

C Operators and Expressions

Learn all the operators in C: math (+, -, *, /), comparisons (==, <, >), and logical operations (&&, ||). Build expressions that compute values.

15 min readTutorial
Read
09
Beginner

Operator Precedence & Associativity

Understand which operators are evaluated first. Learn the PUMAS REBL TAC memory trick and when to use parentheses.

12 min readTutorial
Read
17
Beginner

Enumerations in C

Create named constants for better code readability. Instead of using 0, 1, 2 for days, use MON, TUE, WED with enums.

12 min readTutorial
Read

🔀 Control Flow

Decision making and loops

⚡ Functions

Modular programming with functions

📊 Arrays & Strings

Working with collections

🏗️ Structures

Custom data structures

🎯 Pointers & Memory

Master pointers and memory

📁 File I/O

Reading and writing files

📚 Standard Libraries

C standard library reference

🔥 Advanced Topics

Deep dive into C