Ask Question

What are the advantages and disadvantage of integers and floating numbers?

+2
Answers (1)
  1. 22 June, 04:36
    0
    Advantages of int and disadvantages of float are as following : -

    1. Arithmetic operation on int variables are much faster than float variables.

    2. int variables does not suffer from precision loss while float variable sometimes suffer from it.

    Advantages of float variables and disadvantages of int variables are as following:

    1. float variables can represent values between integers. While integers cannot do that.

    2. Float can represent much greater range of values than integers.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What are the advantages and disadvantage of integers and floating numbers? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers