What are main error types? Which types are most dangerous and why?
Question :
What are main error types? Which types are most dangerous and why?
Main error types are -
(i)Compile-time errors (ii) Run-time errors (iii) Logical errors
Logical errors are most dangerous errors because these are most difficult to fix. The error is caused by a mistake in the program‘s logic. You won‘t get an error message, because no syntax or runtime error has occurred. You will have to find the problem on your own by reviewing all the relevant parts of your code – although some tools can flag suspicious code which looks like it could cause unexpected behaviour.