Sunday, January 18, 2009

How to make Comments in Pascal

Consider the first line in the program:

{ ---------------------------- Comments Example ----------------------------- }

This is a comment and is totally ignored by the compiler. Comments can appear anywhere

in the Pascal program between two braces ({}) or between the two symbols (*

and *) like this:

(* This is a comment *)