79.6k views
0 votes
An example of a floating point data type is ____.

A. int.
B. double.
C. char.
D. short.

User InGeek
by
8.2k points

1 Answer

4 votes

Final answer:

A floating point data type example would be 'double'. It handles numbers with fractions, unlike int, char, and short, which are integer types without fractions.

Step-by-step explanation:

An example of a floating point data type is double. This type of data type is used to represent numbers that have a fractional part, separating it from integer data types. The other options listed, including int, char, and short, are all used to store integer values without a fraction (whole numbers), each having a different range of values and memory storage size.

User Yous
by
7.9k points