Nevermind... I was dumb :-p
Printable View
Nevermind... I was dumb :-p
And just for all the others that are doing C code, and that might need the reminder, char = int. A character is stored as it's numerical value in whatever standard you compile with. Normally, that means that characters are stored as an int with the value of the character's ascii number.
so, char=int for storage purposes...
Actually in most C implementations, a char is stored as a byte and an int is store as 2 bytes. So char isn't quite the same thing as int.
I think most C implementations are up to 4 bytes for an int now.