How to return the ASCII code value of a character in C?
thx..!
How to return the ASCII code value of a character in C?
thx..!
char j = 'j';
printf("%d",j);
Like that?
-Govtcheez
[email protected]
The chars are stored as ASCII codes anyway, so just return it.
Current Setup: Win 10 with Code::Blocks 17.12 (GNU GCC)
Hi!
The only difference between a char and an integer is that a char has in most cases a size of one byte and the integer two bytes.
klausi
When I close my eyes nobody can see me...