Click to See Complete Forum and Search --> : Where am I converting char to int??


Handyman
04-02-2003, 11:07 PM
Nevermind... I was dumb :-p

Big_Mac
04-03-2003, 12:03 AM
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...

Malone
04-03-2003, 12:31 AM
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.

EverlastingGod
04-03-2003, 08:52 AM
I think most C implementations are up to 4 bytes for an int now.