← Back to list

Getting Started with C Programming:

Install on Windows, Mac, or Use Online Compilers

Tanisha fonseca · 2026-06-06 19:52 · 0 claps · 1.7 min read
#c #c-install #gcc-compilers #cgame #compilers
Open on Medium ↗
Wiki topics: 💻 · Programming

Getting Started with C Programming:

Install on Windows, Mac, or Use Online Compilers

C is where real programming begins.

If you’ve ever wondered how computers actually work under the hoodmemory, performance, control : C is your gateway. It’s fast, powerful, and used everywhere from operating systems to game engines.

But getting started can feel confusing:

“Do I install C? A compiler? What even is GCC?”

Let’s fix that:step by step.

What You Actually Need (Important)

You don’t install C itself.

C is just a language. To run C code, you need a compiler a program that converts your .c file into something your computer can execute.

The most common compiler:

  • GCC (GNU Compiler Collection)

💻 Option 1: Install C on Windows

There are two good ways one simple, one powerful.

🟢 Method 1: MinGW (Beginner-Friendly)

  1. Download MinGW (Minimalist GNU for Windows)
  2. Install it
  3. Add the bin folder to your system PATH

Then open Command Prompt and check:

gcc --version

If you see a version number → you’re ready ✅

🔥 Method 2: WSL (Best for Developers)

WSL = Linux inside Windows (recommended if you’re serious)

wsl --install

Then inside WSL:

sudo apt update
sudo apt install build-essential

This installs GCC + all essential tools.

🍎 Option 2: Install C on Mac

Mac setup is super easy.

Just run:

xcode-select --install

That’s it. This installs:

  • GCC/Clang compiler
  • Command-line tools

Check:

gcc --version

🐧 Option 3: Install C on Linux

If you’re using Ubuntu/Debian:

sudo apt update
sudo apt install build-essential

Done. You now have:

  • GCC
  • Make
  • Dev tools

▶️ Writing and Running Your First C Program

Create a file:

#include <stdio.h>
int main() {
    printf("Hello, World!\n");
    return 0;
}

Save it as:

hello.c

Compile and run:

gcc hello.c -o hello
./hello

Output:

Hello, World!

🌐 Option 4: Use Online C Compilers (No Installation)

If you don’t want setup headaches, use an online compiler.

Popular options:

  • Replit
  • OnlineGDB
  • Programiz

Just:

  1. Paste your code
  2. Click Run
  3. Done

⚠️ Common Beginner Mistakes

❌ “gcc not recognized”

→ You didn’t install it or PATH isn’t set

❌ File not found

→ You’re not in the correct directory

❌ Typing mistakes

→ C is strict even a missing ; breaks everything

Pro Tips

  • Use VS Code for writing C code (with C/C++ extension)
  • Always compile before running
  • Learn errors they teach you faster than tutorials

What to Do Next

Once your setup works, try building:

  • A calculator
  • A guessing game
  • A terminal-based game (like GTA Terminal Edition 😏)

Conclusion

C isn’t the easiest language and that’s exactly why it’s powerful.

It teaches you:

  • How memory works
  • How programs execute
  • how computers really think

Master C, and every other language becomes easier.

Now go compile something. 💻


메타데이터
post_id
039a5ea05e9c
slug
getting-started-with-c-programming-039a5ea05e9c
url
https://medium.com/@tanisha.fonseca2807/getting-started-with-c-programming-039a5ea05e9c
canonical_url
https://medium.com/@tanisha.fonseca2807/getting-started-with-c-programming-039a5ea05e9c
author_url
https://medium.com/@tanisha.fonseca2807
status
ok
fetched_at
2026-06-09 18:51:35