+ 2

Which data type we can use to store number like credit card or debit card number..??

3rd Sep 2019, 5:33 PM
Vaidehi Chotaliya
Vaidehi Chotaliya - avatar
6 Respuestas
+ 4
you can store it in an array or a file
3rd Sep 2019, 6:46 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 4
Because you won't (and shouldn't) be doing any math operations with a credit card or debit card number, a string is your best option. And in the real world, these numbers are ideally encrypted as well, and I think that encryption is mainly performed on strings.
3rd Sep 2019, 9:50 PM
Zeke Williams
Zeke Williams - avatar
+ 2
String is prefect
3rd Sep 2019, 6:57 PM
Maxamed Abdi
Maxamed Abdi - avatar
+ 1
str or int depending on how you want to store or read it
3rd Sep 2019, 5:34 PM
Brave Tea
Brave Tea - avatar
+ 1
You could use a string or char*. Char* could be used if you want it to be a little more 'safe and secure'.
4th Sep 2019, 3:33 AM
UrBoyO
UrBoyO - avatar
0
Hello
5th Sep 2019, 11:34 AM
Muzammil Malik
Muzammil Malik - avatar