The main difference between a compiler and an interpreter is that a compiler:
Correct answer
A. Translates the whole program at once
12 views
A. Translates the whole program at once
12 views
A compiler translates the whole program into machine code in one go and produces an executable file before the program runs. An interpreter translates and executes one statement at a time. This is why errors in a compiled program usually appear all at once, while an interpreted program stops at the first error it meets.
Asked in: Matric,FBISE
Not sure why the answer is A? Ask here and get an explanation.