UrbanPro

Learn C Language from the Best Tutors

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

Search in

What does the modulus operator do?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Training Centre

Modulus operator '%' gives the remainder of any expression. For example : r=10%3; // r is 1 , because if you divide 10 by 3 then the remainder is 1
Comments

Thanks for the question Sumit..... Modulus operator will gives you the remainder. Thank You, Team DishaaPro www.dishaapro.com
Comments

It provides you the remainder of an integer value.
Comments

Computer & Maths Professor

The modulus operator gives the remainder. For example 10%3 gives 1 as it is the remainder once 10 is divided by 3.
Comments

Doing mathematics & computing from IIT Delhi

It returns modulus of number. Say, you apply modulus function on -4, then it will return value 4.
Comments

Math

it gives the remainder after devision
Comments

website and mobile application development training, digital marketing training

Remainder of a division
Comments

Educator

Modulus operator finds the remainder when a number is divided by another number. Unlike divide which gives the quotient, modulus operator gives the remainder. Example, 100/5 will give 20 and 100%5 will give 0. Also, modulus operator cannot be used with float variables.
Comments

calculates remainder, 5%2 is 1
Comments

Tuition Teacher

% is the modulus operator. This gives the remainder as the answer after any division process. For eg.- 7%2 denotes 7 mod 2 i.e. 7 divided by 2 will give the remainder 1 which is the answer (quotient 3 will not be considered in case of modulus operator).
Comments

View 20 more Answers

Related Questions

What is an lvalue?
L-Value stands for left value L-Value of Expressions refer to a memory locations In any assignment statement L-Value of Expression must be a container(i.e. must have ability to hold the data) Variable...
Nagasanthoshi
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
Is it necessary to learn data structures in C language only?
data structure helpful to improve your coding stability
Vikas
0 0
8
hi sir c progarm codeing how to write sir........
take any C book then u can learn more...
Suryateja
How to improve my c knowledge........
First learn the basic concepts of C .There is a book named Let Us C. It is a very good book with all the basics and concepts of C.I also have this book .I take classes of teaching basics of C,C++,java. Learn...
Anish

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

Ask a Question

Related Lessons

C Program-Infinite Loop[For] Demo
//Header Files #include<stdio.h>#include<conio.h> //Main function void main(){ //Function for clearing screen clrscr(); //Infinite for loop for(;;) { printf("Hello!"); } //Function for...

Storage classes in c
Storage classes determine the scope and life time of a variable. Scope is defined as the region over which the defined variable is accessible. Lifetime is the time during which the value of a variable...


What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

Swapping variable contents using C
/* WAP to swap the content of variables using C*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ //Variable declaration of type integer int a,b,c; //function...

Recommended Articles

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 >

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 >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

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