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

Dynamic Memory Allocation in C using malloc()
#include <stdio.h>#include <conio.h>//#include <malloc.h> OR#include <stdlib.h>void main(){ int *ptr, i, n, sum = 0; printf("how many elements ? "); scanf("%d", &n);...

Upcasting and Downcasting
Converting a derived-class reference or pointer to a base-class reference or pointer is called upcasting. It is always allowed for public inheritance without the need for an explicit type cast. The downcasting,...

Default Methods in Java 8
Java 8 was released in early 2014 (18th March 2014). Java 8 is a product version. It's development version is JDK1.8 ( Java Development Kit ). Java 8 has some new features that are most awaited in the...
A

Arundhati Pathak

1 0
0

How To Pass CCC Exam? What Is CCC Examination?
NIELIT-CCC Examination Tips and Details Introduction: This course is designed by NIELIT, Delhi to aim at imparting a basic level IT Literacy programme for the common man. This programme has essentially...

C program for Beginners
A Program to print 2 integer value. #include<stdio.h> #include<conio.h> main() int a,b,add; a=5; b=3; add=a+b; printf(“ Addition=%d”,&add); getch(); Brief description...
P
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