C Exercises: Multiply two numbers using bitwise operators
27. Multiply Using Bitwise Operators Variants
Write a C program to multiply two numbers using bitwise operators.
Example:
Input: int x = 8
int y = 9
Output: Product of 8 and 9 using bitwise operators is: 72
Sample Solution:
C Code:
Sample Output:
Product of 8 and 9 using bitwise operators is: 72
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C program to multiply two numbers using only bitwise operators and addition.
- Write a C program to simulate multiplication by shifting and adding, without using arithmetic operators.
- Write a C program to implement a bitwise multiplication algorithm and test it with both positive and negative numbers.
- Write a C program to multiply two integers using bitwise left shifts for doubling and recursive addition.
C Programming Code Editor:
Improve this sample solution and post your code through Disqus.
Previous: Write a C program to check if a given number is Fibonacci number or not.
Next: Write a C program to find angle between given hour and minute hands.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.