why i need to use semi colon??? can't i use any other punctuation mark??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why i need to use semi colon??? can't i use any other punctuation mark???

24th Jun 2017, 3:43 PM
Abrar Mahir Evan
Abrar Mahir Evan - avatar
2 Answers
+ 1
every language has it's syntax, it's mandatory to follow the right syntax, if not the compiler can't translate the code... programming follows rigid rules, that's because every code is translated into binary that means an algorithm for a computer.
24th Jun 2017, 3:50 PM
Elle
Elle - avatar
0
The syntax of C++ demands a semicolon - either you acceot the rules or it will not compile. On the road you also have to obey the traffic rules or you will be punished :) in some cases you can also use a comma , - but be careful, you combine the commands to a sequence.
24th Jun 2017, 9:18 PM
Volker Milbrandt
Volker Milbrandt - avatar