N
Neel
Hi friends,
How can I store a short into an unsigned char???
its like
unsigned char msg;
//now I want to assign 0xAB into it.
//and than want to test it
if(msg==0xAB)
printf("true");
else
printf("false");
What I did is:
unsigned char msg;
msg=(char)(0xAB<<8);
if condition....
This isnt working...
cant anyone pls help me out?
Thanks
How can I store a short into an unsigned char???
its like
unsigned char msg;
//now I want to assign 0xAB into it.
//and than want to test it
if(msg==0xAB)
printf("true");
else
printf("false");
What I did is:
unsigned char msg;
msg=(char)(0xAB<<8);
if condition....
This isnt working...
cant anyone pls help me out?
Thanks