A programmer by mistakes writes a program to multiply two numbers instead of dividing them, how can this error be detected?
(a) Compiler
(b) Interpreter
(c) Compiler or interpreter
(d) None of the mentioned
The question was posed to me in semester exam.
This question is from Lexical Analysis in chapter Compiler Introduction of Compiler