0

iv seen the line 'halt' in some pascal programs after readkey or readln. what does halt do exactly?

4
Contributors
5
Replies
7
Views
8 Years
Discussion Span
Last Post by Turtle85
0

but cant you just use the command 'exit'? why are there 2 commands which do the same thing?

0

Halt = stop the main program
Exit = just going out from a block,if the main program is the only one block then 'exit' will accomplish the main program.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.