answersLogoWhite

0

well, if u dont want the airthematic operator to be used for division and if the divisor is 2

here is the possible solution.

shift the dividend to right by one bit.

for eg: if the diviedend is 127 and divisor is 2, when 127 is shifted by one bit, it is 63

by normal division we get the same quotient(i.e int divided by int 127/2 =63).

User Avatar

Wiki User

16y ago

Still curious? Ask our experts.

Chat with our AI personalities

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin

Add your answer:

Earn +20 pts
Q: Division of a number without using arithmetic operators in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp