OPERATORS

Cards (19)

  • void It is the keyword for valueless.
  • Global Variable - are initialized at the start of the program and outside of any function. If not initialized by the programmer,
  • Local Variable - are initialized each time the function, in which they are declared, is entered.
  • const - is a type qualifier that can be applied to any variable data type. It indicates that the value of the variable is fixed and cannot be changed during runtime.
  • long - is a type specifier that typically means a variable must at least be 32 bits
  • long long - is a type specifier that typically means a variable must at least be 64 bits.
  • short - is a type specifier that typically means a variable must at least be 16 bits
  • signed - is a type modifier for int data types that means a variable can represent both positive and negative values. If not indicated, variables default to this modifier
  • unsigned - is a type modifier for int data types that means it won’t accept negative values.
  • Assignment - Using this operator assigns a value or ‘literal’ to a variable
  • % the modulo operator or percentage sign to get the remainder in division. This operator is useful for categorizing ints and floats such as checking if they are odd or even
  • () the parentheses for groupings.
  • Relational - These are the operators that compare two values and return a truth value(bool)
  • > is used as the greater than operator.
  • < is used as the less than operator.
  • >= is used as the greater than or equal operator.
  • <= is used as the less than or equal operator.
  • == is used as the equals to operator.
  • != is used as the not equal to operator.