come passo un numero ti n cifre a array di n cifre??

es.
int a = 123;
int b[2] = {1, 2, 3};

cioè dividere a nelle parti che costituiranno b