Oh, I guess I should do a loop then to show you:

char values[4];

int num = 2893;

for (i = 0; i < 4; i++) {

int ones = num % 10;

num = num / 10;

values[i ] = ones + '0';

}

This way, values[0] = '3', values[1] = '9', and so on.

If you wanted them in the right order, just change values[i ] to values[3 - i]

What happens here is that the number is repeatedly divided by 10, so the ones digit yields the number you want each iteration.

Edit: [i ] didn't show up correctly, changed variable names so it's a little clearer.