Running a program
Write your program in the editor and press Run or F10. To check a program without running it, choose Execute, then Compile only (F9). Errors and warnings are underlined in the editor and listed above the output; click one to jump to its line.
Anything the program reads with scanf, getchar or fgets must be typed into the Input box before you press Run. The program reads it from there, because it cannot stop and wait for the keyboard while it runs. If the program asks for two numbers, type both, separated by a space or on separate lines.
Files
Open the Files tab beside Input to add data files, or to create one and type into it. Your program opens them by name, for example fopen("data.txt", "r"). Files the program writes with fopen(..., "w") are listed under the output, where you can view them, download them, or keep them as input for the next run.
Keyboard shortcuts
- F10 or Ctrl+Enter
- Compile and run
- F9
- Compile only
- Ctrl+S
- Save as a .c file
- Ctrl+O
- Open a .c file
- Ctrl+F
- Find and replace
- F3 or Ctrl+G
- Find next
- Ctrl+Alt+G
- Go to line
- Ctrl+/
- Comment or uncomment lines
- Ctrl+Z, Ctrl+Y
- Undo, redo
- Esc
- Close a menu or restore an enlarged panel
On a Mac, use Cmd in place of Ctrl.
What does not work here
Programs run in a sandbox inside the browser, so a few things that work on a desktop compiler are not available: conio.h and graphics.h (they belong to old Turbo C), system(), threads, networking, and reading the keyboard while the program runs. Everything in the standard C library, including math.h, string.h, stdlib.h and file input and output, works as usual.