In C++, the array a={ 1, 2, 3, 4, 5}. What function is used to convert it into integer anum= 12345?
1. If the numbers in the array are ASIIC codes, you can use the atoi function to convert them.
2. If the numbers in the array are 1, 0x02, 0x03 ... and so on.
Result = 0;
for(I = 0; I & ltleni++)
{
result+=a[i]*( 10^(len- 1));
}