Multiply Two Numbers without Arithmetic Operator C Program

 

Learn How To Multiply Two Numbers without using Multiplication (*) Operator in C Programming Language. We generally use asterisk operator (*) to find the product of two numbers. Here, we shall use the + operator to find the product of the numbers. Alternatively, two numbers can be multiplied using Bitwise Operators.

The first code to find the product of two numbers without using multiplication operator (*) makes use of the addition (+) operator. If you want to multiply two integers without arithmetic operators, then you will have to use the bitwise operators which is demonstrated in the second program. It, therefore, uses bitwise shift operators.

C Program To Multiply Two Numbers without using * Operator

C Program To Multiply Two Numbers using Bitwise Operators

   

Output

C Program To Multiply Two Numbers without * Operator

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

RECOMMENDED PROGRAMS
Add Two Numbers without Addition Operator in C Programming
Divide Two Numbers without Division Operator in C Programming
Subtract Two Numbers without Subtraction Operator in C Programming
Add Two Numbers using Pointers in C Programming
Subtract Two Numbers using Pointers in C Programming

Let's Discuss