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
+ 2

What is the difference between compiler and interpreter?

we know programming like C, C++ uses compilers to run their code and the languages like ruby , python use interpreters but how many of us knows the difference between them?

8th Apr 2018, 5:51 AM
pushpendra kumar
pushpendra kumar - avatar
2 Answers
8th Apr 2018, 5:58 AM
Aaron Stone
Aaron Stone - avatar
+ 2
Both the compiler and intepreters are translators. They convert the source code to the machine language so as to execute the program but the difference is as follows. Compiler - It translates the source code to the machine language in entirely all at once. Intepreter - It translates the source code to the machine language one line at a time.
12th Apr 2018, 6:16 AM
Nuzzy Nuz
Nuzzy Nuz - avatar