Hi I'm trying to do something which should be simple, but I can't figure it out. I have a pointer to an array of unsigned chars, and I get the first element, which is a hex number. I want to convert it to binary so I can check if it's equal to a number such as 0x01101000.
unsigned char arr[] = {0x25}; //just for example. I am actually using *arr.
unsigned char byte = arr[0];
if(( byte & 0x01101000) == //not sure if this is the right way to proceed
Would appreciate some help! Thanks!!