C++ first steps

#include - Preprocessor Directive
This command is to include libraries in our code.

int main () - Main Function
It is the principal syntax in C++. Is here the code begin.

Expression Statements
In this area to the code, the information to the user is shown

Declaration Statements
Here I enter the information that the user will not see, but that is part of my software.

Return Statement
This area marks the end to my code

Thank you very mutch!! My apologies for my beginner English

1 Like

Return statement may just be the end of a code block, not necessarily the end of all code or even the end as return can even happen at the beginning of a code block.

You can return either nothing or something depending on what’s happening or what you want to happen.

Privacy & Terms