you should change char* to char, right now numberstring is an array of pointers – josefx Jun 1 '12 at 9:10.
A char in C is already a number (the character's ASCII code), no conversion required.
@kevin001 If you want to convert the char to int and a character '1' provides a ascii number that's not 1, you need to remove the offset '0' to realign it to count from 0-9.
Why don't I have to convert int to char with getchar() when reading into a buffer in C?
Then your char could be said to be 'converted'.
How many times have you had a need to convert between variable types such as converting character to numeric or numeric to character? For example, what if you have a character variable with numeric values but you need to perform some calculations?
In short: Because a char[] is not a subclass of a short[]. Casting primitives is different than casting references. When you're casting a primitive value, you're telling the compiler, "Yes, I know that I might be losing something by converting a value stored in one container type to another container type."
CHARTOROWID. Строку в значение типа ROWID. CONVERT. Строку из одного набора символов в другой.
private static String convertDigitToNumeral(int digit, char one, char five, char ten).