hello
i have the next define

#define N 10
int G1[N], G2[N], G3[N]

i whant to add G1 an G2 and put it in G3. example:

G1= 128 G2= 122. when i add 2 and 8 = 10. the carry how i can add this
to the next count (2 + 2 + 1(carry) ?

i thought that can be G1[0] + G2[0] = G3[0]
and next when G3[0] = > 9 then G3[0] = true
when true than the next count +1 and G3[0] - 10
but this don't work.

can someone help me with this ?