05-24-2024, 04:40 PM
Code: (Select All)
T = 10
' Compute the bitwise NOT of T
' NOT 10 is -11 in QB64 (bitwise NOT flips the bits)
T = T * NOT T
' T now becomes 10 * -11 = -110
PRINT T
PRINT
T = 10
' Compute the negation of T
T = T * -T
' T now becomes 10 * -10 = -100
PRINT T
END
No comments.