Special usage in delphi and and or

1=1

10=2

100=4

1000=8

 

1 or 2 = 3(11);

1 and 3 = 1;

2 and 3 = 2;

 

2 or 4 = 6(110);

2 and 6 = 2;

4 and 6 = 4;

Guess you like

Origin www.cnblogs.com/jijm123/p/11128509.html