What is the difference between compiler and interpreter ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between compiler and interpreter ?

24th Mar 2017, 6:27 PM
Prashant Singh
Prashant Singh - avatar
2 Answers
+ 1
A compiler compiles (converts to abject) your whole program at once and gives you a list of all errors in the file. The interpreter will execute the one command you type immediately and will report the errors for that one line or execute if it was syntactically correct.
24th Mar 2017, 6:31 PM
SAMI Awad
SAMI Awad - avatar
+ 1
A compiler is what makes your code executable. The interpreter is the active console like cmd in Windows.
24th Mar 2017, 11:09 PM
Karlo
Karlo - avatar