The logical operators in vb

Users questions: PrivateSubform_load()PrintNot2 -3Print2And3 2Print2Or3 3Print2Xor3 1Print2Eqv3 -2Print2Imp3 -1EndSub This is why? ? Understand how ah? ? ? The book is converted into 16-bit binary, but after I read ~ ~ special to the expert guidance!
Experts answer: is the default double-byte integer variable data 1 -32767 to +32767. PrintNot22 the binary representation To 0000000000000010NOT2 binary is 1111111111111101 is FFFD hexadecimal decimal is -32. Print2And32 = 00000000000000103 = 00000000 000000112and300000000000000103. Print2Or3'32 = 00000000000000103 = 00000000000000112or30000000000000011 as And so on! ! !
  • This information provided by the users.Thanks!