What is the Difference between Compiler and Translator?
Interview question and answer by: Tripati_tutu
| Posted on: 11/2/2010 | Category: .NET Framework Interview questions
| Views: 5278 | | Points: 40
Compiler converts the program from one computer language to another computer language that is translating from a higher level language to a lower level language. A compiler has to cope with any valid syntax in the source language, and generate semantically equivalent code in the target language.
Translator which translate one language to many other language or else we can say a translator is usually translating from a high level language to another high level language, or from a low level language to a high level language. A translator usually has a fixed body of code that is required to translate the program.
| Alert Moderator
Found interesting? Add this to: