What is the difference between a compiler and an interpreter?

CompilerInterpreter
Converts the whole program to machine code at onceReads and runs the program line by line
Errors are shown for the full program before it runsStops at the first error while running
Program runs fast after compilingUsually slower
Example: C, C++Example: Python, PHP

C uses a compiler, like GCC or Clang. Learn how to install it in C Installation.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.