What are Bit Masks, and how do I use them? (examples in C) @JacobSorber
What are Bit Masks, and how do I use them? (examples in C)  @JacobSorber
Uploaded March 2020 | Updated November 2026, 4 days ago
Patreon ➤ patreon.com/jacobsorber
Courses ➤ jacobsorber.thinkific.com
Website ➤ jacobsorber.com
---


What are Bit Masks, and how do I use them? (examples in C) // This is a quick video about Bit Masks and Bit Masking, a topic that a lot of students don't get until long after it would have been useful. This video will show you how to remove unwanted bits, select the few bits you want, or combine bits in useful ways.

Related videos:
Bit Fields: youtu.be/aMAM5vL7wTs
Blinking Lights: youtu.be/Scs3oBY7dEo
More Blinking: youtu.be/9Zyp4sdSUNM
Blinking Lights With Timers/Interrupts: youtu.be/PtTVe0zfg_M





***

Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.


About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:
jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/

To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [patreon.com/jacobsorber]
+ rep the channel with nerdy merch --- [teespring.com/stores/jacob-sorbers-store]

Source code is also available to Patreon supporters. --- [jsorber-youtube-source.herokuapp.com/]
What are Bit Masks, and how do I use them? (examples in C)How do I Set, Clear, and Toggle a Single Bit?Answering Your Questions (clang vs gcc, operators, and is web programming a waste of time?)Why you dont get much from class.How to Implement a Queue in CPulling Back the Curtain on the HeapHow I edit on one OS and run code on another (vagrant)Thread local storage in CWhat is stream orientation? (fwide)The two main types of network socketConst, const pointers, and pointers to const things (in C)Is there Garbage Collection in C and C++?
Jacob Sorber |

What are Bit Masks, and how do I use them? (examples in C)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER