What is the use of a semicolon (;) at the end of every program statement?
4 years ago
C Programming
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.
Sanisha Maharjan
Jan 20, 2022