Why is a semicolon (;) put at the end of every program statement?
Answer / Jamna Prasad
A semicolon (;) is used in C to mark the end of a statement. It enables the compiler to distinguish between individual statements and avoid syntax errors. Without semicolons, the compiler might not correctly understand where one statement ends and another begins.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is scope of variable in c?
Can the “if” function be used in comparing strings?
When should the volatile modifier be used?
what is the little endian and big endian?
Why do we need functions in c?
What are different types of pointers?
What is difference between %d and %i in c?
What is pivot in c?
What is strcmp in c?
how to find greatet of 10 numbers without using array?
What is a ternary operator in c?
What are .h files and what should I put in them?