+ 2
Which data type we can use to store number like credit card or debit card number..??
6 Respuestas
+ 4
you can store it in an array or a file
+ 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.
+ 2
String is prefect
+ 1
str or int depending on how you want to store or read it
+ 1
You could use a string or char*. Char* could be used if you want it to be a little more 'safe and secure'.
0
Hello