Modulus or Modulo Division In C Programming Language

preview_player
Показать описание

Today lets learn about Modulus or Modulo or Modular Division in C programming language.

Division Example
10 / 5 = 2

Modulo Division Example
10 % 5 = 0

Note:
Division operation returns Quotient.
Modulo Division operation returns Remainder.

quotient = dividend / divisor;
remainder = dividend % divisor;

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

I was struggling to understand a codeacademy problem I was being given. This video really helped me to understand what was going on under the hood. Thank you.

SpookyTimestamps
Автор

Can candidate programming be done on 32 bit processor window 7?

ayushanandc
Автор

Best bro thanks for this, watch a lot videos but this stucked.

generalfactso
Автор

Thank bhai this is really halp full.👌👌

acharyparasbhai
Автор

tq's
it help's me a lot....

bhagyashree
Автор

Thanks for the details. In python 10%-3 gives -2

sunthoo
Автор

You might want to replace (x/y) to floor(x/y) (and explain about floor function) because x-(x/y)*y would just become 0 (and making it confusing)

That_One_Guy...
Автор

Why does 5 - (5/2) * 2 become 5 - (2) * 2?

jaylensmith
Автор

What program did you use to type that code into? It looks perfect to practice coding in.

TheAndromeda
Автор

this video is of no use for beginners,
we need vivid explanation not just talking a lot

blakk_china