What is ; known in for loop in c++?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is ; known in for loop in c++??

In c++ we write for loop as for(int i=0;i<5;i++). So what is name of ; this sign?? And this is not known as Line Terminator or Statement Terminator in case of for loop. ; is known as line terminator for statements like int i=10; but this is not case of for loop.

29th Jan 2019, 2:01 PM
Kamakshi Trivedi
6 Answers
+ 3
It is called semicolon everywhere
29th Jan 2019, 2:15 PM
Maneren
Maneren - avatar
+ 2
; is called semicolon And is used for ex. to separate parameters in for loop
29th Jan 2019, 2:12 PM
Maneren
Maneren - avatar
+ 2
Semicolon is an english word not technical word for this
29th Jan 2019, 2:42 PM
Kamakshi Trivedi
+ 2
Ok, it is called separator
29th Jan 2019, 2:50 PM
Maneren
Maneren - avatar
+ 1
Semicolon - I never read that it has a special name in a for-loop
29th Jan 2019, 2:13 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
My professor asked this question
29th Jan 2019, 2:42 PM
Kamakshi Trivedi