+ 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?
2 Réponses
+ 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.