I tried to add two character arrays or integer arrays.
It works correctly only if the values in the array is of one digit.
If one or both of the arrays have numbers with two digits I got the wrong answer.

Suppose

```
//n = 3
a1[n] = "1 2 3"
a2[n] = "4 5 6"

```

I used while loop to addition ...

```
while(sizeofarray > i)
{
  result[i]= atoi(&12[i]) + atoi(&a2[i]);
  i++;
}

```

And i got the correct answer.

But if

```
a1[n] = "1 10 20"
a2[n] = "4 5 6"

```

the addition result will be wrong.

What is the correct code to solve this problem.
Or at least the idea.