This is an old revision of the document!
A structure is an always-public class. For this project, we'll be using one to group together the code we need for our Breakout brick.
Format the code similarly to a class:
struct Brick { int positionX; int positionY; ... };
Remember that for structures, a semicolon is needed after the closing curly brace. You'll get an error otherwise.
Malloc, short for “memory allocation,” does what it says on the tin.
Malloc is used to allocate memory for specific purposes. For breakout, since we'll know how many bricks are going into our brick field, we'll use an array. An array is always the same size, which means the amount of memory used for the array will remain constant. Malloc is perfect for this scenario.