What is Binary Code?

What is Binary Code?

In this article we are going over the binary code how it works and what it is. Everything there is about binary code we are going to be describing almost everything there can be. 

What is Binary Code?

Actually whenever we talk with people in real life, we literally have to give him an instruction just like "Please return my book, let's catch up today" and the person we are talking to, he will simply understand our instructions and will response through instructions too using human language like it can be English, Spanish, Chinese etcetera But when it comes about machines such as mobiles, computers, and all the electrical devices we often interact to, how will we instruct them where we actually have to use machine language that are called programming languages.

Machine language is only and only binary code that is "0 and 1" these numbers are only used to give instructions to electrical machines. Hope everyone remembers that we have already performed and learnt mathematical operation over the binary numbers in our school life and we already know that how to convert decimal numbers into binary code and how to perform an specific operation over the binary code.

Here are some of the examples where we can represent binary code for decimal number.

Decimal numbers

Binary code

0

0

1

1

2

10

3

11

4

100

10

1010

50

110010

100

1100100

 

Same as through binary code English alphabetical letters can also be represented like some of them are as follows. This is not we have learnt in school but this is the binary code that represents the English alphabetical letters and so on the special characters we always interact with that are on the keyboard can also be represented.

Letters and Characters

Binary Code

A

01000001

B

01000010

+

101011

C

01000001

a

01100001

b

01100010

!

100001

Space

100000

100010

~

1111110

(

101000

@

1000000

&

100110


How binary code works

Binary code or 0 and 1 is the machine readable code through which we always give instructions to machines. It works like when electrical devices detects high voltage it represents 1 and when it detects low voltage it represents 0 or whenever electrical current passes through the machine it represents 1 and when it doesn't pass through the machine it represents 0. This is how it always generates the binary codes for pixels, colors, numbers, English alphabetical letters and special characters we always interacts on the electrical machines.

 

Evolution of programming languages

Binary code is the low level programming language that machine directly executes but as time flies there are many programming languages which are introduced and the languages that are used these days are super easy and user friendly through which languages we can easily instruct electrical machines in English language and the instructions written in the English language is always translated with help of software into machine readable code.

Click here for the further knowledge of programming languages and their types.

Previous Post Next Post