guyz what is logical error? give some valuable points to thz guyz
Answers
Answered by
1
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.
HOPE IT HELPS YOU
HOPE IT HELPS YOU
prem3972:
can u say what is the function of it
Answered by
1
What is a logical error?
⇒ Logical error is an error made in programming where the logic of the question is not followed.
⇒ It does not produce the required output in the program
⇒ However the program compiles correctly.
Examples
⇒ When the question asks to write a code , input 2 numbers then add them and produce the output of sum. But instead of adding you subtracted the numbers then the output will be wrong however the program will compile
⇒When you asked to find the area of a square and you wrote the volume of cube, then the desired output will be wrong. However the program will compile because of no syntax or run time errors
Hope it helps :)
_________________________________________________________________
Similar questions