What is the main difference between a compiler and an interpreter ?
A compiler translates code into machine code, while an interpreter executes code directly
A compiler is faster than an interpreter
An interpreter is machine dependent, while a compiler is not
A compiler is used for debugging, while an interpreter is used for execution