Monday, January 19, 2009

How to make program heading

The second line in pascal program is called the program heading. It starts with the keyword PROGRAM,

followed by a space, followed by the program name (Hello_World). The program

name is a user-invented word. User-invented words are classified in Pascal as identifiers.

An identifier must begin with a letter and may contain any number of letters or

digits (in Turbo Pascal it may contain underscores as well). You are free to choose any

meaningful name for your program, but do not expect a program name like BEGIN or

PROGRAM to be accepted. These words are called reserved words, and they are only

used in the proper place in the program.

In Turbo Pascal the program heading is optional. You may skip the whole line and start

your program with the word BEGIN.