What is the difference between division and modulus in 'C' language?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

Division is what you expect it to be, the division of two numbers with the result placed somewhere.

Modulus, on the other hand, is the remainder of integer division of two numbers with the result placed somewhere. The modulus function of a and b, a being the dividend and b being the divisor, is a - int(a/b) * b.

For example, using integer results...

47/4 = 11
47%4 = 3

Check it: 47 = 11*4 + 3
1 person found this useful

What is the difference between c language and embedded c language?

Using normal C you cannot address a bit value. The minimum you can address is 1 byte. using embedded C you can access even abit value C is a widely used general purpo

What is the difference between modulus of compression and bulk modulus and some special for compression?

Modulus of Compression is the ratio of stress to strain in an uniaxial compression action, while as, bulk modulus is the ratio of volumetric stress (hydrostatic pressure) to v

What is the difference between flexural modulus and elastic modulus?

This question is often inquired. Young's modulus is one of modulus of elasticity in tension. Young's modulus is important property to caluculate thermal expansion in horizon

What is the difference between the modulus of rigidity and modulus of elasticity?

We knew from Hook's law- "stress is proportional to strain." So, stress = k * strain [here, k is a constant] or, stress/strain= k Now, if the stress and strain occu

What is the difference between modulus of elasticity and rigidity?

We knew from Hook's law- "stress is proportional to strain." So, stress = k * strain [here, k is a constant] or, stress/strain= k Now, if the stress and strain occu

What is the Difference between C and C languages?

C languages are often based originally on the C language but no longer adhere to it's tenets: often they supersede the original ANSI-92 C language. C++, Objective C, C-, and C

What is Difference between if and switch in c language?

if statement is used when we have to check two condition for example if the condition associated to if is satiafied than the statement associated with that is executed. void m

What is difference between C language and PROLOG?

The heart of Prolog is recursion. Even for using the array , you have to use the recursion. No need to declare the variable, it can directly be used. In using the data structu

What is difference between Secant Modulus and Young modulus?

Young Modulus is the slope of the stress-strain diagram in the linear elastic region. This is the most common use of modulus. As the material goes non-linear in the stress st
In Physics

What is the difference between Young's modulus and Weibul modulus?

Young's modulus is measure of sriffness and is stress divided by strain with units of load per area. Weibull modulus is a dimensionless measure of varaiability in properties l
In MATLAB (Matrix Laboratory)

What are the difference between matlab and c language?

Matlab is a scripting and mathematical language processor for working with mathematical equations. C is a structured programming language for writing programs. Those progra
In Mechanical Engineering

What is the difference between deformation modulus and Young's modulus?

youngs modulus is modulus of elasticity which includes only elastic deformation where as deformation modulus or modulus of deformation include both elastic and inelastic defor