C Programming

Where it all begins — understand the machine from the metal up.

Introduction to C Programming

Meet the mother of modern languages — and watch exactly how your source code becomes a running program.

Operators

Meet the symbols that do the work: do math, compare values and combine true and false — one operator at a time.

Control Flow (if-else, switch)

Teach your program to make choices — if, else, else-if ladders and switch, with every branch animated.

Looping Statements

Meet for, while and do-while — three ways to repeat work, plus the traps that make loops run forever.

Functions and Modular Programming

Package code into named, reusable blocks — parameters in, one value back out, and copies all the way down.

Recursion and Inline Functions

Watch a function call itself: every frame stacks up, the base case fires, and the answers climb back down.

1D Arrays

One name, many boxes: store a row of values, index any of them, and never forget that counting starts at 0.

2D Arrays

Rows times columns: build a grid of values, index it with two numbers, and see how it flattens into memory.

Strings

In C a string is just a char array with an invisible \0 at the end — meet the letters, the terminator and %s.

Array Patterns

Learn the loops you will write forever: running sums, max scans, counting matches and reversing in place.

String Manipulation

Strings are just char arrays with a hidden '\0' — count, copy and compare them by watching every character move.

Pointers and Memory Management

Meet the & and * operators — store addresses, follow them, and let functions change your real variables in place.

Structures and Unions

Group related values into one record — and see why a union makes all its members share a single block of memory.

Preprocessor Directives

Watch #define and #include rewrite your code before the compiler ever sees it — text in, program out.

Dynamic Memory Allocation

Ask the heap for memory at runtime with malloc, fill it, and hand it back with free — leaks not included.

Bitwise Operations

Flip, mask and shift the 1s and 0s inside an int — the operators that talk directly to the hardware.

Command-Line Arguments

Your program just got arguments: argc counts the words, argv holds them — see the shell hand them over.

Error Handling

C has no exceptions — return codes, errno and perror are your only safety net, so learn to use all three.

Enumerations and Typedef

Turn magic numbers into readable names with enum, then give every type a tidy nickname with typedef.

File Handling in C

Open a file, write to it, read it back and close it — the full fopen, fprintf, fgets and fclose lifecycle.