Skip to content
Justice Tech School

C Introduction

C is a fast, low level language created in the early 1970s. Operating systems, databases, embedded devices and many other languages are built with it. Learning C teaches you how memory and the computer really work.

C is compiled: a compiler such as gcc turns your source file into a program you can run. There are no classes and no automatic memory management, so you control everything.

Example
#include <stdio.h>

int main(void) {
  printf("Hello, C!\n");
  return 0;
}

Result

Hello, C!
  • Fragments below are shown without the #include and main wrapper. Put them inside int main(void) { ... } to run them.

Exercise

Which function prints text in C?

("Hi\n");

Quiz Test

What does a C compiler do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.