Printing a message
11 }
#include <stdio.h>
is a preprocessor directive(we'll discuss this topic in detail later) in the C programming languages. It is used to include the standard input/output library in your program.Here's what each part of this directive means:
#include
: This is a preprocessor directive that tells the C compiler to include the content of a file in your source code before the actual compilation process begins. It's a way to bring in external code or libraries into your program.<stdio.h>
: This is the name of the header file you want to include. In this case, it'sstdio.h
, which stands for "standard input/output." This header file contains declarations for various input and output functions, such asprintf
andscanf
, as well as data types likeFILE
that are used for file operations.
When you include stdio.h
in your C or C++ program, you gain access to the functions and definitions it provides, allowing you to perform input and output operations in your code. For example, you can use printf
to display text on the console or scanf
to read input from the user.
The main function
- main()
- int main()
- void main()
- main(void)
- void main(void)
- int main(void)
Comment line
The printf function
Learn C programming language from basic to advanced here (Click here or on the image)