1. The & and && in the judgment statement both represent the AND operation.
The difference is that && means that as long as the first one of the two statements does not meet the conditions, it will be marked as an error and jump out of the judgment.
|| means that as long as the first one of the two statements meets the conditions, it will be marked directly and jump out of the judgment. | means that it is necessary to judge whether at least one of the two statements is correct
2、
When they perform operations, & means that both numbers are first converted into binary, and then both numbers are 1 before they are 1, and the others are 0. | means that as long as one of the two numbers is 1, it is 1, and the others are 0