Subtraction using bitwise operations

Subtraction using bitwise operations

Hello readers, we are gonna take a look at how can we subtract two numbers without using arithmetic operation. We will only use bitwise operations to perform subtraction.

Table of content:

What are bitwise operations?Subtraction using bitwise operationsSubtraction LogicImplementation of LogicComplexity Analysis

We will dive into bitwise subtraction now.

What are bitwise operations?

Similar to arithmetic operators like +, -, *, / in decimal number system, we have bitwise operators like AND ...

 •  0 comments  •  flag
Share on Twitter
Published on August 13, 2021 00:11
No comments have been added yet.