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

Answers were Sorted based on User's Feedback



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

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

Answer / Girjesh Kumar Mishra

In C programming, a semicolon (;) is used to denote the end of each statement. It is necessary to terminate each statement with a semicolon so that the compiler can distinguish between statements and identify their structure correctly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

implement NAND gate logic in C code without using any bitwise operatior.

4 Answers   Alcatel,


Explain heap and queue.

1 Answers   Aricent,


WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N TIMES C COMES N TIMES D COMES N TIMES AND SO ON......... AT LAST UNTIL Z COMES N TIMES...............

3 Answers  


related to rdbms query .

2 Answers  


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1 Answers  


Write a program that accepts a string where multiple spaces are given in between the words. Print the string ignoring the multiple spaces. Example: Input: “ We Are Student “ Output: "We Are Student"

1 Answers  


what is the meaning of 'c' language

3 Answers  


What are pointers in C? Give an example where to illustrate their significance.

1 Answers   Wipro,


How can I get back to the interactive keyboard if stdin is redirected?

1 Answers  


What are identifiers c?

1 Answers  


What is auto keyword in c?

1 Answers  


Why & is used in scanf in c?

1 Answers  


Categories