← C Programming learning path
C Programming · Module 1 of 10

Your first C program

C is a fast, compiled language that teaches how computers really work.

📖 Key ideas

  1. Every C program starts running from main().
  2. #include <stdio.h> brings in input/output functions like printf.
  3. printf("Hello\n"); prints text; \n is a new line.
  4. Statements end with a semicolon.
  5. A compiler (gcc) turns source code into a program: gcc hello.c -o hello.
💡 Real-life example: C is like learning to drive a manual car: more work, but you understand the engine.
main()Where the program starts
#includeAdds a header file
printfPrints formatted output
gccA C compiler