Infosys interview question

Difference between interpreter and compiler