What is the difference between a compiler and an interpreter?
-
A
A compiler runs code line by line; an interpreter translates the whole program first
-
B
A compiler translates the whole program before execution; an interpreter executes code line by line
-
C
They are the same thing with different names
-
D
A compiler only works with low-level languages