Loading lessons...
Getting Started with a C Development Setup
Getting Started with a C Development Setup
To write and run C you need exactly two things: an editor to type code and a compiler to build it.
The checklist
- A text editor or IDE.
- A C compiler (like gcc or clang).
- A terminal to run your program.
Popular options
- Code::Blocks - a free C/C++ IDE.
- Visual Studio - Microsoft's full IDE with C support.
- VS Code + the C/C++ extension + a compiler.
- Command line - just
gccin a terminal.
On Windows
Install MinGW (GCC) or Visual Studio Build Tools, then check:
gcc --version
If it prints a version number, the compiler is ready.
On macOS
Open a terminal and run:
xcode-select --install
That installs Apple's command line tools including gcc/clang.
On Linux
Use the package manager:
sudo apt install gcc
Inside an IDE
In Code::Blocks or VS Code you usually just press "Build and Run". It triggers the whole pipeline.
TL;DR
- You need an editor plus a compiler.
- Code::Blocks / VS Code are friendly starting points.
- Verify with
gcc --version. - On macOS/Windows/Linux you can all get gcc via terminal tools.