C Language Tutorial

C language is a general-purpose, procedure-oriented computer programming language. In 1972, Dennis Ritchie designed and developed C at Bell Telephone Laboratories to port and develop the UNIX operating system.

C language is a widely used computer language, as popular as the Java programming language, and both are widely used among modern software programmers.

The current latest C language standard is C18, and the C language standards before it include C17, C11...C99, etc.

Start Learning C Programming Now!

C Online Tools

Who should read this tutorial?

This tutorial is specially designed for software programmers who need to learn the C language from scratch. This tutorial will give you a sufficient understanding of the C language, thereby enhancing your own professional knowledge level.

Knowledge you need to understand before reading this tutorial:

Before you start learning this tutorial, you need to have a basic understanding of computer programming terminology. A basic understanding of any programming language will help you understand C language programming concepts and help speed up your learning progress.

Compile/Execute C Program

Example

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

Run Example »

Example Analysis:

  • All C programs need to includemain()Function. Code starts frommain()the function begins execution.
  • /* ... */Used for comments and annotations.
  • printf()Used for formatting output to the screen.printf()The function is in"stdio.h"Declared in the header file.
  • stdio.his a header file (standard input/output header file),#includeis a preprocessor command used to include header files. When the compiler encountersprintf()When calling a function, if not foundstdio.hthe header file, a compilation error will occur.
  • return 0;The statement is used to indicate program exit.
other extensions