Thursday, 1 January 2015

types of error in gw basic

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 ofcompiling 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.

No comments:

Post a Comment