Dim aTest As Int64 = 4 And 1 = 0
Dim aTest As Int64 = 4 And 2 = 0
Dim aTest As Int64 = 4 And 3 = 0
Dim aTest As Int64 = 4 And 4 = 4
Dim aTest As Int64 = 4 And 5 = 4
Dim aTest As Int64 = 4 And 6 = 4
在这两个变量之间进行AND的目的是什么?为什么这些价值观会如此?
之前从未遇到过这种情况。
答案 0 :(得分:1)
它的意思是
0100 0100 0100 0100
0001 0010 0011 0100
---- ---- ---- ----
0000 0000 0000 0100
0100
0101
----
0100
请注意,如果两个数字中的相应位都是1,则结果只有一个。