Usually there are three types of viruses in GW-BASIC, which are as follows:
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.
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.
.These errors are detected at the time of compiling of that program.
ReplyDeletecorrect:
.These errors are detected at the time of executing of that program.
Give some examples with screenshots of every error that show difference
ReplyDelete