我有两个变量:
int binary[8];
char array;
其中二进制变量只有'0s'和'1s'......所以,我想这样做
for (i=0;i<8;i++)
if(binary[i])
"Here I want put 1 in the position bit of the variable array"
else
"Here I want put 0 in the position bit of the variable array"
我将如何做到这一点?