What is the primary function of a compiler?
Q1. What is the primary function of a compiler?
Answer: To translate source code into machine code
Explanation: A compiler translates source code into machine code that the computer's processor can execute directly, a process essential for programming.