Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Interesting bug
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Joona I Palaste, post: 1707764"] On a Commodore 64, that GOTO statement will cause an "undef'd statement" error if the variable i has any value from 0 to 51. This is because unlike your micro's BASIC, the Commodore 64 BASIC evaluates true expressions to -1, and thus if i has some value from 0 to 51, the above GOTO will attempt to jump to a negative line number. It should read: 240 GOTO -250*(i=0) - 350*(i=1) - 380*(i=2) - ... - 3550*(i=51) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Interesting bug
Top