3 ms·
Now imagine you have got a typo: 400 L=0:GOTO 290 This would be almost impossible to debug.
by j16sdiz 4y ago
Now imagine you have got a typo:
400 L=0:GOTO 290
This would be almost impossible to debug.
- thaumasiotes 4y agoThat would correspond to the following C: /* 280 */ do_something(); for (;;) { /* 290 */ /* display chart in blocks of 18 lines */ /* 400 */ L = 0; } when the correct code is this: for (;;) { /* 280 */ do_something(); /* 290 */ /* display chart in blocks of 18 lines */ /* 400 */ L = 0; } The bug is that the call to do_something() precedes the outer loop when it should be inside the loop. Is that easier to debug in C than it is in the BASIC program? What's the difference?