ADVERTISEMENT
ADVERTISEMENT

How to Install and Run C Programs on Windows

This tutorial explains 3 popular methods to start writing and running C programs on a Windows PC:

  • OnlineGDB (Online)
  • Dev-C++ (Offline)
  • Turbo C++ (Legacy)

1. Using OnlineGDB (No Installation)

Website: https://www.onlinegdb.com/online_c_compiler

Steps:

  1. Open the website.
  2. Select "C" from the language drop-down.
  3. Type or paste your C code in the editor.
  4. Click the Run button.

Benefits:

  1. No installation required.
  2. Works on any device (Windows, macOS, Linux).
  3. Supports scanf(), input/output, and debugging.
  4. Great for practicing on the go or during exams.

2. Installing Dev-C++ (Modern Offline Option)

Download: https://sourceforge.net/projects/orwelldevcpp/
 

Steps:

  1. Download the Dev-C++ installer.

  2. Run the setup and install it.

  3. Open Dev-C++ and create a new file: File > New > Source File

  4. Write your C code and save with .c extension.

  5. Click Execute > Compile & Run (F11).

Benefits:

  • Lightweight and easy to use.

  • Built-in compiler (GCC) — no need to install separately.

  • Ideal for students and beginners.

  • Supports modern C standards.

GCC stands for GNU Compiler Collection.

It is a powerful, open-source compiler system developed by the Free Software Foundation (FSF) under the GNU Project.

3. Installing Turbo C++ (Old DOS-Based)

Download (Turbo C++ for Windows):

https://turbo-c.net/turbo-c-download/

Steps:

  1. Download and install Turbo C++ with DOSBox preconfigured.

  2. Launch Turbo C++ via the installed shortcut.

  3. Write your program in the editor and save it.

  4. Press Ctrl + F9 to compile and run.

Benefits:

  • Matches many school/college syllabi (especially in India).

  • Familiar UI for those taught using older tools.

Drawbacks:

  • Old 16-bit system; doesn’t support modern Windows natively.

  • Requires DOSBox emulation.

  • Not compatible with modern C standards.


ADVERTISEMENT

ADVERTISEMENT