Home c What does 0x01 mean?

What does 0x01 mean?

Author

Date

Category

what does this mean?

int code = 0;
code | = 0x01;

Answer 1, authority 100%

shouldn’t be a problem with the first line. And the second is just

code = code | 0x01;

That is, the usual bitwise or.

0x01 is this form for writing hexadecimal numbers. In this case, it’s just 1. 0xFF is already 255.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions