How do i compare the following:
unsigned char a = 0x00;
char b = '0'; // signed char
how do i write a comparison/conversion that matches a and b?
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Like everyone said, they are not the same thing. But if you must compare them equal, you can do that with a lexical cast: