Computer Science, asked by hydrogen000001, 9 months ago

Why are logical error harden to locate? ​

Answers

Answered by Anonymous
37

\huge\mathbb{ANSWER}

In spite of logical errors' presence,the program executes without any problem but the output produced is not correct.

Therefore,each and every statement of the program needs to be scanned and interpreted.

Thus the logical errors are harden to locate.

\huge\bold\red{THANK YOU }

Answered by chaviLOVER
0

Answer:

A logic error (or logical error) is a mistake in a program's source code that results in incorrect or unexpected behavior. It is a type of runtime error that may simply produce the wrong output or may cause a program to crash while running.

Many different types of programming mistakes can cause logic errors. For example, assigning a value to the wrong variable may cause a series of unexpected program errors. Multiplying two numbers instead of adding them together may also produce unwanted results. Even small typos that do not produce syntax errors may cause logic errors. In the PHP code example below, the if statement may cause a logic error since the single equal sign (=) should be a double equal sign (==).

Similar questions