hi all,
i am new to programming,
my problem is that after certain data manipulation i will a array which will have only zeros & ones. (example x[5]={0,0,1,0,1}
now i would like to store the contents of the array in another variable like A(say)=00101.
but the codes which i written saves it as A=101.
code which wrote is
//
p=0;
A=0;
for(i=0;i<=4;i++)
{
for(s=i;s<=5;s++)
{
p=10*p;
}
A=A+(m[i]*p);
p=1;
}
//
please help me
thank u