Question: What I would like to learn how to do is to convert an int array to an int in C#.

However I want to append the int with the values from the array.

Example:

```
int[] array = {5, 6, 2, 4};

```

Would be converted into an int that equals 5624.

Thanks for any help in advance.

Answer: 
In C# 3.0 and up:

```
array.Select((t, i) => t * Convert.ToInt32(Math.Pow(10, array.Length - i - 1))).Sum();

```
you can use string stream
(include "sstream")

using namespace std;
int main(){

```
int arr[3]={3,2,4};     //your array..

stringstream ss;

ss<<arr[0];   //this can be run as a loop
ss<<arr[1];
ss<<arr[2];

int x;
ss>>x;

cout<<x;        //simply the int arr[3] will be converted to int x..

```