hey guys i tried to store a long type character by character in an array and this gives me heat....here is my code:for (int i = 0; i < MAX; i++) arrray[i] = (long) resultor memcpy(array, result, 100);but this gives me error messages...
hey guys i tried to store a long type character by character in an array and this gives me heat....here is my code:for (int i = 0; i < MAX; i++) arrray[i] = (long) resultor memcpy(array, result, 100);but this gives me error messages...
i was thinking of using a while loop and the /1000 and %1000 to sort the characters and store them in the array.....is it better???
Assuming you really want the "characters" of the number, this would normally be done something like this.
Code:char str[32]; long result = 123456789; sprintf(str, "%ld", result); // note that's an ell, not a one
The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss
yes thats it ........ thanks for the help @oogabooga.... this is the answer.......