0
Can you input numbers from 0 to 9 using char?
7 Réponses
+ 1
char is text, int is number. You won't calculate a text normally, but you can "convert" text into number by ASCII table. You can find it on the Internet.
+ 1
Do you mean an array of characters from 0 to 9?
0
No just one number
0
As characters
0
Alright maybe you want something like this:
char arr[10]="0123456789";
0
Yeah sorry if I wasn't clear. But is there any difference in char and int like not being able to calculate if I use char?
0
Ok thankyou😊