Which of the following data types can hold a fractional (decimal) number?
Long, int, char, or float
- JazSincLv 72 months ago
All of them.
float will obviously hold a fraction.
The other three can be used for fixed point, although char is very limited in that regard.
- 2 months ago
A float can hold a fractional (decimal) number.
- Mike WLv 72 months ago
It's float. Long, int, and char are all integer types.
- ∅Lv 72 months ago
you should definitely know that.i'mstill learning and even i know it. that is very basic, and if you don't know that you need to re-read the chapter material.