Hi,
This is a segmant of my code that iam working on, for some reason its not giving out the expected output :( which is 11010111. It gives me "elements: ☺ ☺ ☺ ☺ ☺ ☺" and its really bugging me cuz it looks right. Any help would be appriciated. Thanks
unsigned char ipans[8],ipb[4]={1,0,1,1},epans[8];
int ep[8] = {4,1,2,3,2,3,4,1};
int main()
{
int x;
printf("elements: ");
for(x=0;x<8;x++)
{
epans[x] = ipb[ep[x]-1];
printf("%c " ,epans[x]);
}