A compiler is a computer program that converts high-level or human readable instructions into low-level machine code that the computer can execute.
Recall that the computer only typically understands zeros and ones (0s and 1s). Let's take the sample C++ program below for example:
using namespace std;
cout << "Welcome to cpentalk.com";
This code is written in C++ and is considered a high-level language because the syntax is human readable. In order for the computer to understand a code as the one shown above, a compiler will be needed to convert this human-readable code to binary codes that the computer can understand and execute.
Please leave a comment below and share with other students in your network if you found this answer helpful. Happy learning!