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

Do every operator has an Associativity?
Yes, every operator will have an associativity.
Basundhara
0 0
5
Is the C language required to learn Java?
No, learning C is not a strict requirement for learning Java. Java and C are distinct programming languages with different syntax, features, and purposes. While having a background in C can provide a solid...
Akhilesh
0 0
7
Can we have if inside else-if or else in C programming language?
Yes it is possible to do so. The if... else if..... else statements support one other inside themselves... so...
Kirthi
What is important topics in C-language for interviews???
Functions, Arrays , String, pointers , structures
Gayu
How do I print \n in C or C++ programming?
void main () { printf(" "); getch(); }
Supriyo
0 0
6

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

Ask a Question

Related Lessons

Pro learners tip for C language
First get the concept of algorithm before heading to write your first program.

What Would Be Life Cycle Of A Fresher After Campus In An IT Company?
1. Basic Technical Training: Since freshers are not subject matter experts so gone through 3 - 6 months basic technical training within Organization. 2. Technical Assessment: HR sends freshers to various...

Variables
Variables in C Language:A variable is a name that may be used to store a data value. Unlike constant, variables are changeable, we can change value of a variable during execution of a program. A programmer...

C Program-The Odd Loop Demo
/* WAP to print square value of the number entered by user using odd loop*/ //Header Files #include<stdio.h>#include<conio.h> //Main Function void main(){ char another='y'; int num,sq; //...

Tips of learning Java Language/Other Programming Languages
1.You should know the basic concept: If we talk about programming languages so basic concept are same in all the high level languages. So you should know the basic concept firstly then you can easily understand...
I

ICreative Solution

0 0
0

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