compiled and interpreted languages

All Questions

Asked by: Zoha Tazmen

What is the difference between compiled and interpreted languages?

Answers (1)

Compiled languages are converted into machine code that is directly executed by the computer's processor (e.g., C, C++). Compilation happens once, and the machine code is executed multiple times. Interpreted languages are executed line-by-line by an interpreter (e.g., Python, JavaScript). The source code is not compiled into machine code, and the interpreter processes the code at runtime.

Answered by: Zoha Tazmen

Your Answer