Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Demystifying Bitwise Operations In C
Rating: 4.4 out of 5(175 ratings)
1,023 students

Demystifying Bitwise Operations In C

Important and Common Uses of Lower Level Operations in C and C++
Last updated 4/2020
English

What you'll learn

  • You will learn how to write useful programs or routines using bitwise opperations.
  • Write an application or functions that can be used in testing your programs
  • You will write an application to convert Decimal values into binary,
  • Write Application to convert Binary to Decimal
  • Write an Application to convert Decimal to Hex
  • You will become confident enough to face a college viva or company interview

Course content

2 sections17 lectures2h 23m total length
  • Introduction3:30

    "Knowledge is a process of piling up facts; wisdom lies in their simplification"

    ...Martin Fischer

    Here is video to explain scope of the whole course. This course is an extension to our course "Demystifying C programming language". Thorough knowledge of C programming language is must before you start this course.  

  • Introduction to Operations on the bits4:39

    This video explains the introduction to this section. 

    Please refer to the attached file in the resources section of this lecture for knowing importance of "Bit operations in C". 

  • Numbering System16:18

    Here is a video to understand Numbering systems viz. 

    1. Decimal 
    2. Binary 
    3. Hexadecimal
    4. Octal 

    The video also covers advantages and disadvantages of binary, hex and octal numbering system. 

    If you are well versed with numbering system, which is prerequisite to Bit Operations, you can skip this lecture. 

  • One's and Two's Complement Operator23:15

    Here is video to understand how One's complement works. Though Two's complement is not a bit-wise operator, it has been also covered to understand how negative numbers are stored by the computer

  • Bitwise AND Operator12:43

    The video explains the bitwise AND operator and the operator in C is &

  • Bitwise OR Operator7:29

    Here is a second operator in the first category of bit-wise operators i.e. Bitwise OR. It is also called as Inclusive OR operator. The animation is interesting to watch but needs to be viewed and listened to very carefully. The operator in C is |  

  • Bitwise XOR Operator6:03

    Here is a video of third bit-wise operator in the category logical bit-wise operators in C. It's exclusive because of its behavior and versatility. Watch the video carefully. Applications would be in the following video.     

  • Shift Operator7:32

    There are two operators viz. Right Shift (>>) and Left Shift (<<) which are used to shift individual bits. The video explains both of them using extensive animation

  • Converting decimal number into binary equivalent7:31

    Using string in C.

    The program has been written using string concepts in C and use of modulus operator. 

    The source code is made available for download. Type it, compile it, execute it and debug it to know internal processing.  

  • Converting binary into decimal number8:56

    Here is a wonderful program explained by co-instructor Daryl Newell to find the decimal value of a number from the binary pattern. You need to know concepts of string to understand the program. 

  • Take a quiz bit by bit

Requirements

  • You need a computer with an IDE compiler or gcc for linux installed.
  • You should have a fundimental understanding of the C language syntax
  • We recommend having completed our "C Programming language Demystified" course or similar

Description

In this course we will discuss the importance of bitwise operations in modern programming, how bitwise operations are  performed, how to set up a “bit mask” to test for a particular bit pattern, or to turn on a specific bit, etc.

This course is an additional course to our “Demystifying Object Oriented Programming with C++” and “C programming language demystified”.  If you have not completed the C programming Demystified course, I recommend that you complete it or maybe take them at the same time. This course is essential in understanding the lower level operators in the C and C++ language. Having an understanding of these concepts will help you to be a better programmer by learning the how and why these features are used in the programs we write each day.

We will write small utility applications that will convert Decimal to Binary, Binary to Decimal, Decimal to Hex and more. In the section 2 we are going to add minimum 7 videos of applications of bit-wise operators at periodic intervals

Who this course is for:

  • Anyone who wants to write programs but not familiar with the "Binary Number System"
  • If you don't understand the use of Bit-Wise operations and where they are used in everyday programs.
  • Anyone who is interested in going into micro controllers should find this course useful
  • If you think that low level bit operations are not needed.