0

What is the use of ;

7th Oct 2017, 6:39 AM
tek chand
tek chand - avatar
5 Antworten
+ 12
10ks for ask me
7th Feb 2021, 7:03 AM
Melekte Petros
Melekte Petros - avatar
+ 6
this was for C++ {Like we use Full Stop (.) after the end of an english statement, we use semi colon (;) at the end of a program statement. e.g. 1) I am learning to code. 2) cout << "Hello world."; }
24th Dec 2020, 12:07 AM
Melekte Petros
Melekte Petros - avatar
+ 4
It shows the end of the statements in Java. Omitting it will give a compile time error.
7th Oct 2017, 6:41 AM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
+ 2
Like we use Full Stop (.) after the end of an english statement, we use semi colon (;) at the end of a program statement. e.g. 1) I am learning to code. 2) cout << "Hello world.";
7th Oct 2017, 7:02 AM
Abhishek Kumar Singh
Abhishek Kumar Singh - avatar
0
Semicolon is needed for parsing the code. Your lines of code look like a 1 line of code for interpreter/compiler, even though you have multiple lines in your code. When prasing comes to the semicolon, interpreter/compiler knows that 'this' string is complete and then checks 'this' string on syntax errors.
7th Oct 2017, 8:37 AM
Freezemage
Freezemage - avatar