Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiler failure
#4
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.
Reply


Messages In This Thread
Compiler failure - by eoredson - 05-24-2024, 05:46 AM
RE: Compiler failure - by SMcNeill - 05-24-2024, 07:31 AM
RE: Compiler failure - by gaslouk - 05-24-2024, 11:45 AM
RE: Compiler failure - by gaslouk - 05-24-2024, 04:40 PM
RE: Compiler failure - by eoredson - 05-25-2024, 12:17 AM
RE: Compiler failure - by bplus - 05-24-2024, 07:40 PM
RE: Compiler failure - by hsiangch_ong - 05-25-2024, 01:12 PM
RE: Compiler failure - by SMcNeill - 05-25-2024, 02:07 PM
RE: Compiler failure - by eoredson - 05-29-2024, 03:23 AM



Users browsing this thread: 1 Guest(s)