C Programming
C Programming Tutorial
A complete C course: from your first program to pointers, memory, files and system programming, with tested code in every lesson.
Start learning
120 lessons
Lessons
- C Programming Tutorial: Learn C Step by Step
- C Language Introduction: What C Is and Why Learn It
- C Compilation Process: Preprocess, Compile, Assemble, Link
- Identifiers in C: Naming Rules and Conventions
- Keywords in C: Full List With Meanings
- Input and Output in C: printf, scanf and More
- Variables in C: Declaration, Initialization and Scope
- Scope Rules in C: Block, File and Function Scope
- Constants in C: const, #define and enum
- Data Types in C: int, float, char, double and More
- Literals in C: Integer, Floating, Character and String
- User-Defined Literals in C++ (operator””)
- Octal Literals in C: Why 010 Equals 8
- Compound Literals in C: Unnamed Arrays and Structs
- Character Literals in C vs C++: Why sizeof(‘a’) Differs
- Type Conversion in C: Implicit and Explicit Casting
- Ranges of Data Types in C: Min and Max Values
- Operators in C: Arithmetic, Relational, Logical and Bitwise
- Operator Precedence and Associativity in C (Table)
- Decision Making in C: if, else, else if and switch
- Loops in C: for, while and do-while
- Functions in C: Syntax, Parameters and Return Values
- Function Declaration vs Definition in C
- Function Call Stack in C: How Calls Work
- Parameter Passing in C: Pass by Value and by Pointer
- The main() Function in C: Return Values and Arguments
- Recursion in C: How Recursive Functions Work
- Inline Functions in C: Syntax, Rules and Examples
- Nested Functions in C: GCC Extension and Portable Options
- Arrays in C: Declare, Initialise and Use Arrays
- Traverse an Array in Reverse Order in C
- Search an Element in an Array in C: Linear and Binary
- Count Elements Smaller Than X in an Array in C
- Sum of Array Elements in C: Loop, Pointer and Recursion
- First Repeating Element in an Array in C
- Count Zeros in a Sorted Binary Array in C
- Find the Largest Element in an Array in C
- Pointers and Arrays in C: How They Are Related
- Pass a 3D Array to a Function in C
- Multidimensional Arrays in C: 2D and 3D Arrays
- Find the Length of an Array in C With sizeof
- Strings in C: Declaration, Input and Manipulation
- C String Functions: strlen, strcpy, strcmp and More
- Pointers in C: A Beginner-Friendly Guide
- Pointer vs Array in C: Key Differences
- Pointer Arithmetic in C With Examples
- Pointer to Pointer (Double Pointer) in C
- Function Pointers in C with Examples
- Structures in C: struct Declaration, Access and Examples
- Unions in C: Shared Memory for Members
- Enumeration (enum) in C with Examples
- Memory Layout of a C Program: Text, Data, BSS, Heap, Stack
- Dynamic Memory in C: malloc, calloc, realloc and free
- Read a File in C: fgetc, fgets and fread
- Write and Read a Structure to a File in C
- EOF, getc() and feof() in C Explained
- Delete a File in C Using remove()
- Error Handling in C: errno, perror and Return Codes
- Using goto for Error Cleanup in C
- Error Handling in C File Operations
- Handle Divide by Zero in C
- C Preprocessor: #define, #include, #if and Macros
- Macros in C: Object-Like, Function-Like and More
- Header Files in C: Creating and Using .h Files
- Create Your Own Static and Shared Library in C
- time.h in C: Dates, Times and Measuring Run Time
- Internal vs External Linkage in C: static and extern
- Storage Classes in C: auto, static, extern, register
- Variadic Functions in C: stdarg.h and Variable Arguments
- Input/Output System Calls in C: open, read, write, close
- Signals in C: Handling SIGINT, SIGTERM and More
- Socket Programming in C: TCP Client and Server
- IP Address vs Port Number: What Is the Difference?
- _Generic in C11: Type-Generic Macros
- Multithreading in C With POSIX Threads (pthreads)
- Careers in C Programming: Jobs, Skills and Roadmap
- C Interview Questions and Answers (Beginner to Advanced)
- C Fundamentals Practice Problems for Beginners
- C Functions Practice Problems with Solutions
- C Practice Problems: Arrays, Strings, Structs and Pointers
- Bitwise Operators in C (AND, OR, XOR, NOT, Shifts) with Examples
- typedef in C: Aliases for Structs, Arrays and Function Pointers
- const and volatile in C: Const Pointers and Parameters
- Command Line Arguments in C: argc and argv
- void Pointer, NULL Pointer, Dangling and Wild Pointers in C
- qsort and bsearch in C: Sorting Arrays, Strings and Structs
- String to Number Conversion in C: atoi vs strtol, sscanf, snprintf
- Bit Fields in C: Packing Struct Members into Bits
- Structure Padding and Alignment in C (sizeof, offsetof, pack)
- C Project: Student Records System with Structs and Files
- Linked List in C: Insert, Delete, Search and Reverse
- Stack and Queue Implementation in C
- Sorting Algorithms in C: Bubble, Insertion, Merge and Quick Sort
- Binary Search in C: Iterative, Recursive and Bounds
- sizeof Operator in C with Examples
- Reading Input Safely in C: fgets vs scanf
- snprintf, sprintf and sscanf in C
- strtok in C: Split a String into Tokens
- math.h Functions in C: pow, sqrt, round and More
- Undefined Behaviour in C: Common Cases and Safe Code
- Dynamic Arrays in C With realloc
- Dynamic 2D Arrays in C: Three Ways to Allocate
- Matrix Operations in C: Add, Multiply, Transpose, Determinant
- Writing Your Own String Functions in C
- Hash Table in C: Chaining and Open Addressing
- Binary Search Tree in C: Insert, Search, Delete
- Flexible Array Members and Variable Length Arrays in C
- Random Numbers in C: rand, srand, Ranges and Shuffling
- assert and Debugging Techniques in C
- C Project: Word Frequency Counter
- Fixed-Width Integers in C: stdint.h and inttypes.h
- C printf Format Specifiers
- C memcpy, memmove and memset
- C Binary Files: fseek, ftell and Random Access
- Endianness and Byte Order in C
- The volatile and restrict Keywords in C
- Generic Programming in C With void Pointers
- Circular Buffer (Ring Buffer) in C
- Binary Heap and Priority Queue in C
- C Project: Inventory Manager
