Flow-control structures: Difference between revisions

Content added Content deleted
(Add header for GW-BASIC)
Line 428: Line 428:
===Process initialization===
===Process initialization===
A complete program must have exactly one function named main, which is called on program start up. In addition, a program can have any number of functions named init. These are called before main, but otherwise in unspecified order.
A complete program must have exactly one function named main, which is called on program start up. In addition, a program can have any number of functions named init. These are called before main, but otherwise in unspecified order.

=={{header|GW-BASIC}}==
<lang qbasic>100 PRINT "Endless loop"
110 GOTO 100</lang>


=={{header|Haskell}}==
=={{header|Haskell}}==