All Questions
1
question
9
votes
1
answer
2k
views
Is this a bug or an allowed Pascal behavior?
Consider the following Pascal program:
1 1 PROGRAM MAIN(OUTPUT); VAR F:TEXT; I:INTEGER;
2 2 BEGIN
3 2 REWRITE(F);
4 3 FOR I := 10 TO 30 DO BEGIN
5 3 WRITELN( I, ’...