C
C online compiler
Run C online and step through it a line at a time, forwards and backwards, with variables, the call stack, pointers and Turbo C graphics.h.
About this C compiler
C remains the foundation for systems work. Compile and run a single translation unit here to check pointers, loops, and I/O quickly.
Questions and answers
- Which standard do you use?
- C23, compiled by GCC 16.2 with -O2 -Wall -Wextra. Warnings are shown but do not stop the programme from running. The C library is older than the compiler, so headers that C23 added, such as <stdbit.h>, are not available.
- Can I answer scanf prompts while the programme runs?
- Yes — switch to Interactive mode and type in the terminal. Batch mode still accepts pre-filled standard input for contest-style runs.
- Why is my printf prompt missing until I type?
- Stdout is a pipe in the sandbox, so it is fully buffered. Call fflush(stdout) after a prompt that has no newline, or end the prompt with \n.