why we use semicolon? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why we use semicolon?

8th Sep 2016, 8:27 AM
Alina Adobroaie
2 Answers
+ 5
To end a statement. In python, you use indentation for that. In any case, the compiler needs a way to tell statements apart from one another, and in c/c++ that is the way that was chosen.
8th Sep 2016, 8:55 AM
Zen
Zen - avatar
+ 1
; will separate the lines
13th Sep 2016, 1:56 PM
Twinkle Baisane
Twinkle Baisane - avatar