Explaining the sections of our code

First of all we have the Preprocessor Directive.
In this section we can include codes that was written by others, and allow us to use strings etc…

The second part is the Main Function.
This section is the main part of the code and include our strings and integers that we want to declare etc.

The third part is the Expression Statements.
The expressions are defined by using the semicolon at the end of the our part of code.

Then we have the Declaration Statements.
In this section we declare the integers that we are going to use in our code.

In the end we have the Return Statements.
This final section allow the code to run returning 0 to the main function of the code.
if other numbers are returned (example ‘1’), our code will not run and the compiler will show us an error.

Privacy & Terms