UrbanPro
true

Take BSc Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Bitwise Operators - Binary Number System

SuDo InfoTech
02/05/2017 0 0

Binary Number System

  1. A bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, primitive action directly supported by the processor, and is used to manipulate values for comparisons and calculations. On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition. While modern processors usually perform addition and multiplication just as fast as bitwise operations due to their longer instruction pipelines and other architectural design choices, bitwise operations do commonly use less power/performance because of the reduced use of resources.
  2. Logical Gates

           Tables to revwise things

  1. On off status

Binary-coded decimal

Jpeg best example of storing data

  1. Binary arithmetic

           + -

0 + 0 → 0

0 + 1 → 1

1 + 0 → 1

1 + 1 → 0, carry 1 (since 1 + 1 = 0 + 1 × binary 10)

  1. Subtraction works in much the same way:

0 − 0 → 0

0 − 1 → 1, borrow 1

1 − 0 → 1

1 − 1 → 0

  1. Signed and unsigned numbers representation
  1. Two's complement
  1. Finding binary of negative numbers
  2. Standard conversions hex, oct, dec -> bin bin -> hex, oct, dec

           Fastest conversions hex->bin bin->hex oct->bin bin->oct

  1. Bitwise operators

http://en.wikipedia.org/wiki/Bitwise_operations_in_C

  1. Usages of binary number knowledge in programs

           Masks

           1 bit status

  1. Magic of binary usage (bitwise operators)

           Swapping numbers

           Finding out range of int

http://en.wikipedia.org/wiki/Bit_manipulation

http://en.wikipedia.org/wiki/XOR_swap_algorithm.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Phishing
Phishing: Sam received an email “Congratulations. . .You have won a Lottery!!!” Now, wasn’t that tempting..l The message said: It meant that he has won the lottery. ‘ The message...

About Learning
How do we go from not knowing something to acquiring information, knowledge, and skills? Learning became a major focus of study in psychology during the early part of the twentieth century as behaviorism...

Read CSV data using ODBC Connection
Codes to read the CSV data using ODBC Connection- Input File: File's Encoding format should be ANSI as below class Student{ public string CollegeId { get; set; } public string AdmissionDate...

Addressing mechanism of computers in the Internet
1 Introduction As many people have name like “Ramesh”, “Ram”, we are used to call these guys by name. We can give numbers also to these people. These people get numbers as PAN...

Database Genral Interview question
Q: What is SQL? A: SQL stands for 'Structured Query Language'. Q: What is SELECT statement? A: The SELECT statement...
X

Looking for BSc Tuition Classes?

The best tutors for BSc Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BSc Tuition with the Best Tutors

The best Tutors for BSc Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more