Skip to main content
Engineering LibreTexts

5: Often Used Data Types

  • Page ID
    • 5.1: Integer Data Type
      The integer data type basically represents whole numbers (no fractional parts). The integer values jump from one value to another. There is nothing between 6 and 7. It could be asked why not make all your numbers floating point which allow for fractional parts.
    • 5.2: Floating-Point Data Type
      The floating-point data type is a family of data types that act alike and differ only in the size of their domains (the allowable values). The floating-point family of data types represent number values with fractional parts. They are technically stored as two integer values: a mantissa and an exponent. The floating-point family has the same attributes and acts or behaves similarly in all programming languages.
    • 5.3: String Data Type
      Technically, there is no string data type in the C++ programming language. However, the concept of a string data type makes it easy to handle strings of character data. A single character has some limitations. Many data items are not integers or floating-point values.
    • 5.4: Arithmetic Assignment Operators
      The five arithmetic assignment operators are a form of short hand. Various textbooks call them "compound assignment operators" or "combined assignment operators". Their usage can be explaned in terms of the assignment operator and the arithmetic operators.
    • 5.5: L Value and R Value
      They refer to on the left and right side of the assignment operator. The L value (pronounced: L value) concept refers to the requirement that the operand on the left side of the assignment operator is modifiable, usually a variable. R value concept pulls or fetches the value of the expression or operand on the right side of the assignment operator.
    • 5.6: Interger Division and Modulus
      By the time we reach adulthood, we normally think of division as resulting in an answer that might have a fractional part (a floating-point data type). This type of division is known as floating-point division.
    • 5.7: Practice 4 Often Used Data Types

    • Was this article helpful?