Statement and Coments

Variable gives value, hence it is called declaration statement.
the cout gives expression of the statement.
#includeis preprocessor directive.

1 Like

the preprocessor directive indicates the code that we are going to need the iostream library (which is a code already written by someone else)
the main fonction is the core fonction of the code and make the program to work
an expression statement is a line of code that do not necessarily display some text on the termianl
a declaration statement is a line of code that declare something (like an integer)
the return statement is the end of the code so the program knows when to end the code.

1 Like

Privacy & Terms