Sunday, January 22, 2012

Types of errors in GW-BASIC

Usually there are three types of viruses in GW-BASIC, which are as follows:
Syntax error:
                A Syntax Error occurs when the program violates one or more grammatical rules of the programming language.These errors are detected at the time of compiling of that program.
Logical error:
                A Logical Error occurs when a program follows a wrong logic. The compiler or interpreter does not report any error mesage for a logical error. These are the most dificult errors to locate. The Logical Errors can be identified by looking at the wrong output  of the program and throughly testing the program.
Runtime error:

This error occurs when program follows an illegal function call. For example when we try to divided a number by zero such as 4/0.

2 comments:

  1. .These errors are detected at the time of compiling of that program.

    correct:
    .These errors are detected at the time of executing of that program.

    ReplyDelete
  2. Give some examples with screenshots of every error that show difference

    ReplyDelete