If I have an array of 4 values, how would I store all the values into one variable?

```
    char d[4];
    int allvalues;
    d[0] = 1;
    d[1] = 2;
    d[2] = 3;
    d[3] = 4;

```

I want **allvalues = 1234**. If I add this piece of code, the output comes out different.

```
  allvalues = d;
  printf("%d", allvalues);

```

Thank you!