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

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

4 Answers   IBM,


Is c is a high level language?

0 Answers  


What are c identifiers?

0 Answers  


if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.

18 Answers   Parexel, Ram Infotech, Zycus Infotech,


In C, What is the #line used for?

2 Answers  






Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

0 Answers  


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

0 Answers   Infosys,


what does data structure mean?

8 Answers  


say the following declaration is correct nr not. int b=a,n=0;

4 Answers   Wipro,


What is a pointer value and address in c?

0 Answers  


What is void pointers in c?

0 Answers  


Can an array be an Ivalue?

0 Answers   EXL,


Categories