+ 2

which data type used for entering the Mobile number for user which use less memory

3rd Aug 2017, 6:34 PM
paresh jaisinghani
4 Respuestas
+ 1
depends on the number of digits in the mobile number but unsigned or unsigned long should be enough
4th Aug 2017, 9:48 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
i would use long instead of int but im unsure if im answering your question right.
3rd Aug 2017, 8:57 PM
D_Stark
D_Stark - avatar
0
4,294,967,295 is max. range of unsigned long so its too short for to store mobile number so its answer should be "unsigned long long int" may be
4th Aug 2017, 5:48 PM
paresh jaisinghani
0
Or use two numbers
4th Aug 2017, 6:46 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar