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

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
- Remove
system("pause");: Desktop Dev-C++ templates often appendsystem("pause")so the Windows console window does not close immediately. In the browser terminal, output stays on screen automatically—deletesystem("pause")so portable Linux GCC builds cleanly. - Replace
<conio.h>/getch(): Non-standard DOS/Windows console headers are unnecessary online; use standard<stdio.h>functions such asscanf,fgetsandgetchar. See the Turbo C & conio.h migration guide for quick replacements. - Use
int main(void): Modern ISO C11/C17 requiresmainto returnintrather thanvoid main(). - Need C++ (
iostream/cout)? Open the companion online C++ compiler for.cppDev-C++ assignments.
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
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.