CodeCompiler
F
main.c
>_
Live Console
Click Run to start

C Online Compiler

Write, Run & Share C code online using OneCompiler's C online compiler for free. It's one of the robust, feature-rich online compilers for C language. Getting started with the OneCompiler's C editor is simple and pretty fast.

About C

C is a general-purpose, procedural computer programming language developed by Dennis Ritchie in 1972 at Bell Labs. It is one of the most widely used programming languages and is the foundation for many modern languages.

Key features

  • Free
  • Online
  • Real-time output
  • Easy & fast
  • No setup or installation required

Hello World

#include <stdio.h>
int main() {
    printf("Hello, World!\n");
    return 0;
}

Variables

int age = 25;
float price = 9.99;
char grade = 'A';

Loops

for (int i = 0; i < 5; i++) {
    printf("%d\n", i);
}