What is the use of a semicolon (;) at the end of every program statement?

Answer Posted / hrpynux@gmail.com

In computer programming, the semicolon is often used to separate multiple statements (for example, in Perl, Pascal, and SQL; see Pascal: Semicolons as statement separators). In other languages, semicolons are called terminators and are required after every statement (such as in PL/I, Java, and the C family).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using macro in c language?

803


Can static variables be declared in a header file?

811


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

819


Why do we use main function?

886


Explain what is the difference between far and near ?

854


What is the use of f in c?

730


How does #define work?

837


What is sizeof array in c?

765


What is the use of ?

809


What is a nested formula?

786


Do you know the difference between malloc() and calloc() function?

812


Subtract Two Number Without Using Subtraction Operator

566


What are the different file extensions involved when programming in C?

1005


What is static identifier?

901


Can a local variable be volatile in c?

755