array to one number

hey i have an array of 3 numbers 1,2,3 ones do I need like a figure 123

FX; char test_1 [3] = {2,5,5};

int test_2 = 0; do something with test_1

test_2 becomes 255

can it be done

Assuming they are decimal digits: test2 = test1[0]*100+test1[1]*10 + test1[2];

If test1 is an ascii char as you stated it gets a little more complicated:

test2 = (test1[0] - '0')*100 + (test1[1]-'0') * 10 + (test1[2] - '0')

super thank you it was what I was missing