C Programming Tutorial 32 - Modulus Operator

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


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

After the words of wisdom...I'm 39, starting c for scratch. It's never too late.

mcmihion
Автор

The pet rat pizza example is so golden!

tonytonystache
Автор

I am a first year student, because of this pandemic the way of learning is through online class but I’ve been struggling comprehending the c programming of how our professor teach it to us. I get really overwhelm of everything he teaches, because I don’t know a thing in programming.. watching your videos helps me understand little by little, I hope someday I can relate to what our professor is discussing.

Nomuu
Автор

i gave myself this example: 13 % 3 is 1, because if all the 3 in 13 get eaten there will be 1 left
there is four "3" inside 13
1 is extra and it remains
or 1 doesn't count as 3 so it remains

OsadeTOOT
Автор

Straight to the point with great visual explanations and a fun attitude.
Fantastic tutorial Caleb, keep it up!

MizManFryingP
Автор

well you do good videos they help alot
and i want to be a reverse engineer so yeah im still there learning C lol
but with your videos ill learn Fast

unboxmodz
Автор

Sharing your pizza with your pet rat, imagine that :D great content, very clear videos.

iamzumie
Автор

The pizza was a good example, however im hungry now

philipp
Автор

On a clock with 2 hours, it ends up at 1 O'clock if 5 hours pass is how I remember what 5%2 means

SusanAmberBruce
Автор

Modulus? More like modu-yay for us, because we’ve got such a great teacher. Thanks again for all of these wonderful videos!

PunmasterSTP
Автор

Thankyou I haven't understood this for months and your pizza analogy really helped :)

lucysiket
Автор

Actually there is a modulus operator in C instead of using % sysmbol Modulus is defined in stdlib.h file and the syntax goes like this:

1) define the result like so:

div_t result; /* Make sure #include <stdlib.h> is in the header */
2) Then define your variables:

int x = 45; int y = 4;

result = div(x, y);

3) Now print your results like so:

printf("%4d DIV %d = %d\n", x, y, result.quot);
printf("%4d MOD %d = %d\n\n", x, y, result.rem);

This should work just fine.

johnali
Автор

i guess this is what haha sounds like when someone texts it

WarringFighter
Автор

Great educational video series, keep up the good work!

profittaker
Автор

Thank you! I understand now what and how modulus operator is and works.

andrasparanici
Автор

Great video and very easy to understand!

stoleyourcats
Автор

0:15 that Beavis and Butthead laugh :D

ereaUA
Автор

i love you caleb curry great work..this series is awesome

daisymangue
Автор

"My illustrations are weird and awful sometimes" - says it after making us understand the concept by taking a simple real life example of pizza.

chhiringlama
Автор

I loved it! And your comparison with pizza was a life savior for me. Thanks!!!

gabicazo