142k views
5 votes
If you wanted a computer that store a variable with the content of 110 maple street which datatype would be most appropriate

User Karimah
by
2.9k points

1 Answer

3 votes
Depends on the language you’re using. As a Java programmer, I would use a String, but not every language has that option. Oftentimes if a String variable is not used in the language, there is a very similar solution of a char array, which is essentially the same. Hope this helps.
User David Hariri
by
3.8k points