0
Which data type is used for storing phone no.?
5 Answers
+ 8
We have had a lot of debate over this IRL. I would go for string. (Taking into consideration if you had a number which starts with multiple zeros)
+ 2
As others mentioned, string is the way to go. For most phone numbers, an int wouldn't be a problem, but as they mentioned, you get into octals when you start throwing zeros on the front of ints.
0
no..
0
how
- 4
integer.
it is small size on memory.