Answer :
The purpose of a comment is to help the compiler understand your program and a comment provides information to the programmer.
What is a comment and its use ?
- Comments are text notes that are added to the program to provide explanations for the source code.
- They are used in a programming language to document the program and remind programmers of the tough things they just accomplished with the code.
- They also aid in the understanding and maintenance of code for future generations.
- These are considered non-executable statements by the compiler.
- Each programming language has its own method for incorporating comments in the source code.
- We can write the pseudocode that we planned before writing the original code in the comments.
- Pseudocode is a language that combines conversational language and high-level programming.
- This makes it easier to review the source code because pseudocode is more understandable than the program.
- The programmer uses code descriptions to help others comprehend his or her intent.
- It contains the code's summary.
- The process is explained in the comments.
- Diagrams and rigorous mathematical proofs are examples of such explanations.
- This could be interpreted as an explanation of the code rather than a clarification of its intent.
- For example, a programmer may provide a comment explaining why an insertion sort was chosen over a quicksort, as the former is, in theory, slower.
What is a compiler ?
A compiler is a computer program that converts computer code written in one program into another. The term "compiler" refers to programs that convert source code from a high-level programming language to a lower-level language in order to build an executable program.
an learn more about coding and comment from https://brainly.com/question/28338824
#SPJ4