Ask Question
23 October, 00:11

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.

+1
Answers (1)
  1. 23 October, 03:23
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers