Installing GCC & Setting Up in C
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.
Pick a compiler
gcc on Linux, Xcode command-line tools (Clang) on macOS, MinGW-w64 or Visual Studio on Windows.
Install it
Linux package managers ship gcc directly; macOS gets Clang via xcode-select --install; Windows installs MinGW-w64 or Visual Studio.
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.
Pick an editor
VS Code with Microsoft's C/C++ extension highlights errors as you type and builds with a shortcut.
$ gcc --version$ gcc hello.c -o hello -WallRecommended resourcesAffiliate links · may earn us a commission
Recommended for learners
Practice what you learned
Re-implement each visualized algorithm in C yourself — building beats watching.