Convert array of integers to integer

Hi guys, I am trying to convert an array of integers to an integer. For example, int Array1=[123] --> int num1 =123. Atoi() doesn't work... Do you know some way to do it? Thanks!

do you mean array1 [1, 2, 3] (ie 3 separate number?)

array[0]*100 + array[1]*10 + array[2]

generally you can put this in a loop for the same effect

int sum = 0;
for (uint8_t i=0; i<MAX_DIGITS; i++)
  sum = (sum*10)+array[i];

“I am trying to convert an array of integers to an integer. For example, int Array1=[123] → int num1 =123.”

It would help if you ask a sensible question. This is just nonsense.