Divide Two Numbers without Arithmetic Operator C Program

C Program To Divide Two Numbers without Division Operator

Learn How To Divide Two Numbers without using Division (/) Operator in C Programming Language. We generally use division operator (/) to divide a number. Here, we shall use the (-) operator to find the product of the numbers. Alternatively, two numbers can be divided using Bitwise Operators.

The first code to find the division of two numbers without using division operator (/) makes use of the subtraction () operator. If you want to divide two integers without arithmetic operators, then you will have to use the bitwise operators which is demonstrated in the second program. It uses bitwise shift operator.

C Program To Divide Two Numbers without using Division Operator

C Program To Divide Two Numbers using Bitwise Operators


C Program To Divide Two Numbers without using / Operator and Bitwise Operators

If you have any compilation error or doubts in this C program to Divide Two Integers using Bitwise Operators, let us know about it in the comment section below.

Recommended Programs
C Program To Subtract Two Numbers using Bitwise Operators
C Program To Add Two Numbers using Bitwise Operators
 C Program To Evaluate An Algebraic Expression
C Program To Multiply Two Numbers using Bitwise Operators

Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

Join The Discussion