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.
I have a char that is given from fgets, and I would like to know how I can convert it into a char*. I am sure this has been posted before, but I couldn't find one that was doing quite what I wanted to do.
How can I convert char a[0] into int b[0] where b is a empty dynamically allocated int array I have tried … I want 4 but it gives me ascii value 52 Also doing
Then your char could be said to be 'converted'.
Actually, it doesn’t convert the datatype of <char> (assuming it’s a variable), although the result of the expression will be an [code ]int[/code].
Convert Character Array To String In Java. How to iterate over a 2D list (list of lists) in Java. Sum of all Palindrome Numbers present in a Linked list.
static tz_rule tz_rules[2]; 63. 64. 65. static void compute_change (tz_rule *rule, int year) __THROW