Learn C
#include "gettingstarted/install.h"

Installing GCC & Setting Up in C

#concept

C has no single official download — you need a C compiler, and GCC's gcc is the standard choice on Linux, Clang on macOS (via Xcode tools), and MinGW-w64 or MSVC on Windows. All compile standard C the same way, so skills transfer directly between them.

Setup is one install plus a terminal check: gcc --version should print a version number. An editor like VS Code with the C/C++ extension adds inline errors and one-click builds, but the compiler itself is the only hard requirement.

#how it works
1

Pick a compiler

gcc on Linux, Xcode command-line tools (Clang) on macOS, MinGW-w64 or Visual Studio on Windows.

2

Install it

Linux package managers ship gcc directly; macOS gets Clang via xcode-select --install; Windows installs MinGW-w64 or Visual Studio.

3

Verify the install

Running gcc --version should print a version like 13.x — command not found means the compiler's folder isn't on your PATH yet.

4

Pick an editor

VS Code with Microsoft's C/C++ extension highlights errors as you type and builds with a shortcut.

#example
$ gcc --version
$ gcc hello.c -o hello -Wall
Output
gcc (GCC) 13.2.0
(compiles hello.c into a program named hello, warnings on)
1gcc --version asks the compiler to identify itself — success means it is installed and on your PATH.
2gcc hello.c -o hello compiles the source into the executable hello (-Wall enables all common warnings — always use it).
3Running ./hello executes that native program directly, with no interpreter involved.
#use cases
Setting up a new machine before any C work can start
Diagnosing a teammate's command not found error during onboarding
Always compiling with -Wall -Wextra so the compiler catches beginner bugs
Configuring an editor build task for one-shortcut compile-and-run

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Classic DSA interview booksThe reference books interviewers themselves learned from — great next to the visualizers.See the books

Practice what you learned

Re-implement each visualized algorithm in C yourself — building beats watching.