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



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

Answer / 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

More C Interview Questions

What are the advantages and disadvantages of pointers?

0 Answers  


What is the use of pragma in embedded c?

0 Answers  


what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers  


int i=~0; uint j=(uint)i; j++; printf(“%d”,j);

1 Answers  


Is it possible to run using programming C for Java Application?

2 Answers   NIC,






show how link list can be used to repersent the following polynomial i) 5x+2

0 Answers   CBSE,


void main(int argc,char *argv[],char *env[]) { int i; for(i=1;i<argc;i++) printf("%s",env[i]); }

3 Answers  


how can make variable not in registers

1 Answers   TCS,


write a c program for greatest of three numbers without using if statment

4 Answers   IBM,


Which of these functions is safer to use : fgets(), gets()? Why?

0 Answers  


What are the advantages of using new operator as compared to the function malloc ()?

0 Answers   NIIT,


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

0 Answers  


Categories