Ask Question
30 November, 23:15

Know when the double, int, String, and char data types are best used. Example: I would store a social security number in a string because the social can contain dashes and it is only used for displaying not for a mathematical equation.

+2
Answers (1)
  1. 1 December, 00:58
    0
    A double is best used for numbers that are real, as in they have a decimal. Int is best used for numbers that are whole, as in no decimal. Strings are best used, as in the example you gave, when you have to represent a piece of information that isn't strictly numbers
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Know when the double, int, String, and char data types are best used. Example: I would store a social security number in a string because ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers