Following is the list of simple types:
- Int: For example 1, 2, 4, and -100. They can be both signed and unsigned. A signed int type can be both positive and negative. An unsigned int type cannot be negative; its minimum value is 0.
- Float: For example, 3.14.
- Long: Unlike Int, which is 32-bit, Long is a 64-bit integer value. It can also be both signed and unsigned.
- Decimal: Like Float, decimal data types also represent decimal digit numbers with the main difference being in terms of precision. For Float data members, the precision is 7; however, in the case of decimal data types, the precision is 28 digits.
- Char: Represents a single character sequence. It can acquire values such as C, c, or white-space, any special characters – such as % and # – and even a digit such as 1.
- bool: It can be used to represent variables that acquire a digital value such as true or false.