Tag: Operator

Glossary: Assignment operator

Posted on

A type of operator which uses numbers to assign a value to a variable. It is made up of two operands one of which being your variable, or an operand (your variable) and an expression. For example, if you were to say x = 3 the letter x is your variable and 3 is your […]

Glossary: Logical operator

Posted on

A type of operator which combines multiple statements. For example, you have the attributes ‘cat’ and ‘dog’: if a person likes cats you’d set the value of that attribute to ‘yes’, and if they did not you’d set the value to ‘no’, and the same goes for dogs. If you used an operator of AND, […]

Glossary: Comparison operator

Posted on

A type of operator which compares two input values, called operands. Expressions using this type of operator always return one of two values: true or false. For example, if you were to ask if the number 2, the same as the number 3, 2 = 3? This would return false. If instead you were to […]

Glossary: Bitwise operator

Posted on

A type of operator that can group input values together. These are similar to logical operators but only work with bits – the 1s and 0s of machine code). Operator Example Description & (AND) AND Sets each bit to 1 if both bits are 1 | (OR) OR Sets each bit to 1 if one […]

Glossary: Operator

Posted on

A type of action or procedure which produces a new value from zero or more input values, called operands. There are several types of operator: Arithmetic operator Array operator Assignment operator Comparison operator Bitwise operator Increment/decrement operator Logical operator String operator Type operator And these types can be categorised into the following: Urnary operator Binary […]