

InterviewSolution
Saved Bookmarks
1. |
Give difference between compiler and interpreter |
Answer» \tS.No.CompilerInterpreter1.Compiler scans the whole program in one go.Translates program one statement at a time.2.As it scans the code in one go, the errors (if any) are shown at the end together.Considering it scans code one line at a time, errors are shown line by line.3.Main advantage of compilers is it’s execution time.Due to interpreters being slow in executing the object code, it is preferred less.4.It converts the source code into object code.It does not convert source code into object code instead it scans it line by line5It does not require source code for later execution.It requires source code for later execution.Eg.C, C++, C# etc.Python, Ruby, Perl, SNOBOL, MATLAB, etc.\t | |