Computer Science for IGCSE & O level - Software (Section 3 - No. 35)

What is the difference between a compiler and an interpreter?
A compiler translates and then executes; an interpreter executes line by line.
An interpreter translates and then executes; a compiler executes line by line.
Both translate and execute simultaneously.
They both translate the entire program at once.

Explanation

Compilers translate the whole code before execution, while interpreters translate and execute one line at a time.

Comments (0)

Advertisement