---
title: "Discussion on \"Bit manipulation & bitwise operators\" | Hashnode"
description: "Discussion on \"Bit manipulation & bitwise operators\". A Beginner's Guide to Bit Manipulation and Bitwise Operators"
url: "https://hashnode.com/posts/bit-manipulation-bitwise-operators/642ecc1a3d498fea18aa39d7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Bit manipulation & bitwise operators](https://codewise.hashnode.dev/bit-manipulation-bitwise-operators?utm_source=hashnode&utm_medium=feed)

A Beginner's Guide to Bit Manipulation and Bitwise Operators

Apr 6, 2023 · 5 min read · codewise.hashnode.dev  
Updated Apr 9, 2023  
Read the article

-   [#c](https://hashnode.com/tag/c)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#bit-manipulation](https://hashnode.com/tag/bit-manipulation)
-   [#bit-operation](https://hashnode.com/tag/bit-operation)

## Written by

[manga](https://hashnode.com/@codeweb)

@codeweb

  
[View profile](https://hashnode.com/@codeweb)

Data Science | Data analyst

I am anything that involves data and tech.

## Responses 3

Markdown supported · ⌘↵ to post

[Clifford Mapesa](https://hashnode.com/@cliff984)

[Feb 9, 2024](https://hashnode.com/posts/bit-manipulation-bitwise-operators/642ecc1a3d498fea18aa39d7/comment/65c5be1ec08544dc456f3bba)

Great article!

[Royalty](https://hashnode.com/@Royalty)

[Apr 6, 2023](https://hashnode.com/posts/bit-manipulation-bitwise-operators/642ecc1a3d498fea18aa39d7/comment/642ee63b70fdff2e83db56e8)

Nice article 💯 A little bitwise trick…

// swap a and b without an extra variable a = a ^ b b = a ^ b a = a ^ b

Try it.

[manga](https://hashnode.com/@codeweb)

[Apr 6, 2023](https://hashnode.com/posts/bit-manipulation-bitwise-operators/642ecc1a3d498fea18aa39d7/comment/642ee63b70fdff2e83db56e8#reply-642f22c17a31ea30695e472d)

Awesome. Thank you
