Question: I've problem to merge 3 variable become in to one variable:

example :

```
int var1,var2,var3;
int result;
var1 = 1;
var2 = 2;
var3 = 3;

result = ........??;

printf("Result %d",result);

output :
123

```

How can I do this?

Answer: 
printf("Result %d%d%d",var1, var2, var3);
Should it be:

```
char str[100];
sprintf(str, "%d%d%d", var1, var2, var3);
sscanf(str, "%d", &result); // or atoi

```