0 votes
156 views
in C program by (1.7k points)
edited

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

1 Answer

0 votes
by (1.7k points)
selected by
 
Best answer
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.

Related questions

0 votes
1 answer 109 views
asked May 14, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 186 views
0 votes
1 answer 120 views
0 votes
1 answer 220 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...