✏️ Explanatory Question

What is the use of a semicolon (;) at the end of every program statement?

👁 4,484 Views
📘 Detailed Answer
💡

Answer with Explanation

It has to do with the parsing process and compilation of the code. A semicolon acts as a delimiter, so that the compiler knows where each statement ends, and can proceed to divide the statement into smaller elements for syntax checking.