Code blocks

Code blocks are the building blocks of a program. A code block will usually contain a preprocessor directive, a main function, expression statements, declaration statements, control flow statement, comments, and a return statement.
Preprocessor statements bring in code from other files
Main function will be the body of the program where the compiler does its thing.
Expression statements will display information to the user.
Declaration statements initialize variables
Control flow statements use looping, if else, and case breaks to have the program make decisions or control the flow of the program.
Comments are notes the the programmers put in to make the code easier to understand or explain why certain things are the way they are in the program, even just helpful reminders.
A return statement will end the program.

Privacy & Terms