Dev-C++ / Dev C Online Compiler (Browser GCC)

Dev-C++ / Dev C Online Compiler in Browser

Many university labs and introductory programming courses teach C and C++ using Bloodshed or Embarcadero Dev-C++ on Windows. Because Dev-C++ uses GCC (TDM-GCC / MinGW) as its underlying compiler, standard C programs written for Dev-C++ run directly in this browser compiler on macOS, Linux, Chromebooks, iPads and Windows without installing a desktop IDE.

Cloud Run transmits source files and stdin input to remote compilation services. Compiler versions and accepted flags depend on the active execution provider. Review the Privacy Policy before running or sharing code, and never paste private credentials.

Adapting Windows Dev-C++ Lab Code for Portable GCC

Clean Dev-C++ to Standard C Starter

#include <stdio.h>

int main(void) {
    int n = 5;
    long factorial = 1;

    for (int i = 2; i <= n; i++) {
        factorial *= i;
    }

    printf("%d! = %ld\n", n, factorial);
    return 0;
}

Related C & C++ tools

Explore the main online C compiler, GNU C compiler, multi-file C IDE, C++ compiler, and C compiler error fixes.

Dev C online compiler FAQ

Can I run Dev-C++ C and C++ assignments here without installing Dev-C++ on Windows?

Yes. Classic Dev-C++ compiles code with MinGW GCC under the hood, so standard C and C++ assignments written for Dev-C++ compile and run directly in your browser.

Why does system("pause") or conio.h fail when running Dev-C++ code online?

Windows-specific calls such as system("pause") and conio.h are only needed to keep a local console window open on Windows. Remove them here—program output stays visible in the terminal automatically.

Should I switch between C and C++ mode for Dev-C++ coursework?

Use this page for .c programs (#include ), or switch to the /cpp online C++ compiler when your Dev-C++ file uses #include , cin/cout or STL containers.

How do I enter console input for scanf in Dev-C++ programs?

Type all input values into the Stdin tab before clicking Run so scanf or fgets reads them cleanly without blocking.