I have account numbers that are in the same form as SS numbers, for example, 123-12-1234 What C variable type should be sued to store these? Can a primitive type hold such ‘numbers’? A brief explanation would be great too! Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What do you want to do with these numbers? You may want to store them as a string if you want to display them. You may want to store it as 3 ints if each section means something and you will be comparing them. You may want to store it as 1 int and handle formatting when you display it if you will be doing a lot of comparisons or sorting.