Explaining the code sections

Another assignment is to try and explain the different sections of the code in the screenshot.

The preprocessor directive is there to include already existing data. The main function is the part of the code where we instruct the code what to do.

the Expression statement is the part of the body of the function where we communicate the content type (ex. printing ‘Hello World’)

Declaration Statements instead is where we assign roles to some specific values or in general to determine the type of content. (ex. int a = 1;)

both in order to be statements have to contain the semicolon ’ ; ’ at the end of each line.

and the Return statement is where we determine when the function stops running.

Privacy & Terms