Creating your First program in C language || C Programming Tutorials

Опубликовано: 20 Июнь 2026
на канале: Learning and Teaching Coding
1,679
18

======= C program structure : =============
‪@LearningandTeachingCoding07‬

1) stdio is standard for input/output, this allows us to use some commands which includes a file called stdio.h.
or
This is a preprocessor command. That notifies the compiler to include the header file stdio.h in the program before compiling the source-code.

2) int/void : int/void is a return value, which will be explained in a while.

3) main(): The main() is the main function where program execution begins. Every C program must contain only one main function.
or
This is the main function, which is the default entry point for every C program and the void in front of it indicates that it does not return a value.

4) Braces: Two curly brackets "{...}" are used to group all statements.
or
Curly braces which shows how much the main() function has its scope.

5) printf(): It is a function in C, which prints text on the screen.
or
This is another pre-defined function of C which is used to be displayed text string in the screen.

6) return 0 : At the end of the main function returns value 0.

#LearningandTeachingCoding
#CProgrammingTutorials
#CPrograms