Рет қаралды 8,380
Bit masking is an advanced programming technique. In this example, I show you how to use a bitmask in C in order to determine the bit pattern of a specific byte (a number or a character).
MORE LESSONS
=============
To follow all this series on bits, bytes and binary numbers, go to the “Down To The Metal” playlist:
• Down To The Metal
Lessons on specific topics:
Why Do Big Numbers Turn Negative?
• Why Do Big Numbers Tur...
What is a Binary Number?
• What Is A Binary Number?
Bits, Bytes and Binary Numbers:
• Bits, Bytes and Binary...
Be sure to subscribe to the Code With Huw channel so that you get a notification when I upload more lessons in this series.
PROGRAMMING BOOKS
====================
If you want to learn programming in more depth (and also support this channel!) you might think of buying one of my books. I have written books on C programming, Using Pointers in C, Recursion and other programming topics. You can buy my books (paperback or Kindle) on Amazon.
“CODE WITH HUW” ON TWITTER:
=================================
/ codewithhuw
“CODE WITH HUW” ON FACEBOOK:
=================================
/ codewithhuw
Good luck! And good programming!