C Language Tutorial
C is a general-purpose, procedural computer programming language. In 1972, Dennis Ritchie designed and developed C at Bell Telephone Laboratories in order to port and develop the UNIX operating system.
C is a widely used computer language; it is as popular as the Java programming language, and both are widely used among modern software programmers.
The current latest C language standard is C18; earlier C language standards include C17, C11, ... C99, and others.
Start learning C programming now!
Who should read this tutorial?
This tutorial is designed for software programmers who need to understand C from scratch. It will give you a solid understanding of C, thereby enhancing your professional expertise.
Knowledge you need before reading this tutorial:
Before starting this tutorial, you need a basic understanding of computer programming terminology. A basic understanding of any programming language will help you grasp C programming concepts and speed up your learning.
Compile/Execute a C program
Example
#include
<
stdio.h
int
main
(
)
{
/*
My first C program
*/
printf
(
"
Hello, World!
\
n
"
)
;
return
0
;
}
Run Example »
Example analysis:
- Every C program needs to include the main() function. Code begins executing from the main() function.
- / ... / Used for comments.
- printf() Used for formatted output to the screen.printf() The function is declared in the "stdio.h" header file.
- stdio.h is a header file (standard input/output header file), #include is a preprocessor directive used to include header files. When the compiler encounters the printf() function, if the stdio.h header file is not found, a compilation error occurs.
- return 0; The statement is used to indicate exiting the program.