The word ‘unary’ refers to a single unit. Unary operators are so-called because they perform operations on a single operand. For the purposes of this course, we will only discuss …
Arithmetic operators are used to do simple maths, or arithmetic, inside the code. For example, we might want to add the value of one variable to another. Operator Symbol Addition …
The assignment operator is used to assign values to a variable called an ‘operand’ (we introduced you to this operator through examples in the last step). For example: float mBallX; …
Variables are like containers. These containers are used for storing data. In this video, you’ll learn more about variables and how they are used, as well as the types of …
An error in a computer program is often referred to as a “bug“. Legend has it that this dates back to early computers (large electromechanical machines that could easily fill …
Variables Variables can be thought of as ‘containers’ for data. Each variable has to have a unique name, so that you can refer back to it in the program. By …