Why do you have a semi colon at the end??? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Why do you have a semi colon at the end???

18th Mar 2018, 5:24 PM
Mr. Pr○grammer
2 Antworten
+ 3
So the compiler knows that the statement ends there
18th Mar 2018, 5:26 PM
Chris
Chris - avatar
+ 3
The semicolon is a statement terminator in C to help the parser figure out where the statement ends since.
18th Mar 2018, 5:41 PM
Baraa AB
Baraa AB - avatar