Question 8.6

How can I get the numeric (character set) value corresponding to a character, or vice versa?


In C, characters are represented by small integers corresponding to their values (in the machine's character set), so you don't need a conversion routine: if you have the character, you have its value.


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback