Question: Question 2 1 0 p t s If a variable needs to hold the following result out to 5 digits of precision, ( 3 .
Question
If a variable needs to hold the following result out to digits of precision, what primitive data type would be best?
In order to be memory efficient, the double data type would be best.
In order to be memory efficient, the float data type would be best.
Since we are dividing by this would cause integer division so the int data type would be best.
Since we are dividing by this would cause integer division with a small result so the short data type would be best.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
