My words on each section of the code

1. #include

#include is a library that other programers wrote it and letting us use it so it will
be much easier for us

2. Why do we have the main function in our file?

we have the main function in our file because in every c++ file there must be the main function so our app can work

3. Statements
An expression followed by a semicolon is an expression statement
A declaration statement is basically some code that declares something

4. Why do we have the return statement?
return 0 to check for any errors

Privacy & Terms