Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 2 months ago

Which of the following data types can hold a fractional (decimal) number?

Long, int, char, or float

4 Answers

Relevance
  • 2 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 W
    Lv 7
    2 months ago

    It's  float.  Long, int, and char are all integer types.  

  • Lv 7
    2 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.

Still have questions? Get answers by asking now.