I'm a beginner using C. I want to combine two integers into 1. See example code.
#include <stdio.h>
int main()
{
int age[4];
int mouse[4];
mouse[0]=50;
age[0]=23;
age[1]=mouse[0]age[0];
printf("%d",age[1]);
return 0;
}
As you can see, I have 50 in mouse[0], 23 in age[0], and i want age[1] to be 5023.
What is the simplest way to do this? This will be a small part of a large code so I really want to keep it simple. And excuse the silly variable names!
Thanks all!