Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are the data types?
What are the data types?
There are integers, floating points, characters, strings, booleans, arrays, structures and enumerations.

1, Integer: Integer data type is used to represent an integer, which can be positive, negative or zero.

2.Float/Double: float data type is used to represent numeric values with decimal parts.

3. Character: The character data type is used to represent a single character, which can be letters, numbers, symbols, etc.

4.string:string data type is used to represent a text consisting of a string of characters, which can be letters, numbers, symbols, etc.

5.Boolean: Boolean data type is used to represent true value or false value.

6. Array: An array is a collection that can store multiple data of the same type.

7. Structure: A structure is a collection that can store many different types of data, and its member variables and methods can be customized.

8.Enum: Enum is a special data type used to define a set of constants with the same attributes.