Divide Two Numbers without Arithmetic Operator C Program

By | October 18, 2016

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

Output

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 Add Two Numbers using Bitwise Operator
C Program To Subtract Two Numbers using Bitwise Operator
C Program To Multiply Two Numbers using Bitwise Operator
C Program To Find Addition of Two Numbers using Pointers
C Program To Subtract Two Numbers using Pointers

3 thoughts on “Divide Two Numbers without Arithmetic Operator C Program

Let's Discuss