OPERATORS

Cards (20)

  • String Literal - It represents a sequence of characters enclosed in double quotes.
  • \n Represents a newline (moves the cursor to the start of the next line).
  • \b Represents a backspace (moves the cursor one place backward).
  • Escape Sequences - are usually a pair of characters that start with a backslash ‘\’ to represent certain action or formats in character and string literals.
  • \0 Represents the NULL character.
  • \t Represents the movement to the next tab stop
  • \xhh Represents char hh where hh is hexadecimal number
  • \a - sound the bell
  • \\ Inserts a backslash character
  • \” - insert a double quote
  • \'- insert a single quote
  • Keywords - Are all the sequence of characters that corresponds to a value represented by the computer or a predefined code in a programming language.
  • Variables - is a piece of memory or storage in the computer that you name with an identifier where you can store data
  • Declaration - is the process of creating and announcing that a variable exists to the compiler.
  • Definition - is the process of defining the data type of a variable and allocating the proper memory for it
  • int Is the keyword for the data type that stores integer literals. It allocates 4 bytes(32 bits) of memory. Its value ranges from 2,147,483,647 to -2147483648 (2^32 integers in total)
  • float Is the keyword for the data type that stores floating point literals. It also allocates 4 bytes(32 bits) of memory. Its range is a bit more complicated as it can sacrifice precision for range. It stores its values in scientific notation.
  • double Also known as double precision, is the keyword for a data type similar to float that can store more significant digits. It works the same as float while allocating 8 bytes(64 bits) of memory
  • char Is the keyword for the data type that stores a single character. It allocates 1 byte(8 bits) as indicated in the ASCII character code
  • Initialization is the process of assigning an initial value to a variable.