

InterviewSolution
Saved Bookmarks
1. |
Difference between complier and interpreter |
Answer» The difference between an interpreter and a compiler is given below:\xa0Interpreter / Compiler1)Translates program one statement at a time. / Scans the entire program and translates it as a whole into machine code.2)It takes less amount of time to analyze the source code but the overall execution time is slower. / It takes large amount of time to analyze the source code but the overall execution time is comparatively faster.3)No intermediate object code is generated, hence are memory efficient. / Generates intermediate object code which further requires linking, hence requires more memory.4)Continues translating the program until the first error is met, in which case it stops. Hence debugging is easy ./ It generates the error message only after scanning the whole program. Hence debugging is comparatively hard.5) Programming language like Python, Ruby use interpreters. / Programming language like C, C++ use compilers. | |