New course! Every coder should learn Generative AI!
Try a free lesson0
why we use semicolon?
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.
+ 1
; will separate the lines