UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is the use of semicolon at the end of every statement?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Tutor

Computer languages are just like our normal communication languages. Hindi, eng etc. Enable to communicate us with each other. Similarly computer language helps us to communicate with computer. As a full stop tells us that the sentence is complete in the same way a semicolon tells the computer that the...
read more
Computer languages are just like our normal communication languages. Hindi, eng etc. Enable to communicate us with each other. Similarly computer language helps us to communicate with computer. As a full stop tells us that the sentence is complete in the same way a semicolon tells the computer that the instruction is complete and is to be executed. read less
Comments

14yrs exp Math Computers Science English Hindi Teaching. Improvement In Scores Guaranteed Fee REFUND

It's similar to our full stop.
Comments

Expert Java Trainer

Semicolon is used to terminate statement. It helps the parser to identify the end of statement because C can have any number of lines.
Comments

Accounts, Computer Science Expert

My answer is as same as Ms.Ekta.
Comments

Conceptual Learner, Critical Thinker

Semicolon is used to indicate the termination or end point of any programming instruction or statement. Lets understand it with simple examples. Ex- We want to print two individual statements as mentioned below- Printf("This is the first line"); /* here, when compiler start executing this statement,...
read more
Semicolon is used to indicate the termination or end point of any programming instruction or statement. Lets understand it with simple examples. Ex- We want to print two individual statements as mentioned below- Printf("This is the first line"); /* here, when compiler start executing this statement, it's control will execute the print statement. Once it is printed, control reach to the semicolon, then semicolon indicates the this statement is over, then control jump to the next statement,*/ printf("\nThis is second line"); //and then second print statement will be executed. This is how, instruction is executed in C language. read less
Comments

Software Developer and Trainer with 10 years of experience

It merely acts as Full Stop for each statement in Programming Language. As . symbol have different meaning in programs, ; have been used to terminate each statements.
Comments

Perl Developer | Perl Trainer

The semicolon is a statement terminator in C to help the parser figure out where the statement ends since, by default, statements in C (and C++ and Java) can have any number of lines.
Comments

I do agree with all of them as statement terminator. To add on top, it is also a "sequence point" which means all side effects of previous evaluations will have been performed, and no side effects from subsequent evaluations have yet been performed.
Comments

The compiler reads each line in a C program If the compiler encounters the semicolon it means its the end of the statement i.e statement is terminated.
Comments

Tutor

It is a instruction terminator.
Comments

View 12 more Answers

Related Questions

what are type qualifiers in c language
The type qualifiers/modifiers in C language are used to alter the meaning of basic data types. These can be divided into 3 categories: 1. Size modifiers a. short (default) b. long 2. Sign modifiers a....
Mahesh
What is a pragma?
In computer programming, a directive pragma is a language construct that specifies how a compiler should process its input. The ' #pragma ' directive is the method specified by the C standard for providing...
Anil
Can an array be an lvalue?
The answer to this question is no, because an array is composed of several separate array elements that cannot be treated as a whole for assignment purposes. The following statement is therefore illegal:...
Vinodha
What are all the data types in C programming with their details?
In the C programming language, data types constitute the semantics and characteristics of storage of data elements. They are expressed in the language syntax in form of declarations for memory locations...
Ganga
0 0
6
How do I check my C programming skills?
You should try to solve your daily life problems with c , i.e - build your own budget calculator or chess game and many more. Moreover make a habbit of solving 10 questions daily.
Ramnarayanan
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons


Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

Array vs Linked List
Array Linked List Accessing element is easy. Accessing element is difficult compare to Array. Easy to use. Difficult to use. Memory is Fixed size. Memory is variable size. If...

C Program-Error Handling[Program Exit Status]
//Header files #include<stdio.h>#include<conio.h>#include<stdlib.h> //Main Function void main(){ int dividend=20; int divisor=5; int quotient; //Function for clearing screen clrscr();...
S

Dynamic Memory Allocation in C using malloc()
#include <stdio.h>#include <conio.h>//#include <malloc.h> OR#include <stdlib.h>void main(){ int *ptr, i, n, sum = 0; printf("how many elements ? "); scanf("%d", &n);...

Recommended Articles

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more