Multiply Two Numbers without Arithmetic Operator C Program

C Program To Multiply Two Numbers without Multiplication Operator

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
C Program To Add Two Numbers without Addition Operator
 C Program To Divide Two Numbers without Division Operator
 C Program To Subtract Two Numbers without Subtraction Operator
 C Program To Find Addition Two Numbers using Pointers

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