How character is stored in Computer

When we try to store character value in computer, it will not store character directly rather it will store corresponding ASCII value.

[Image source google]

Pictorial Explanation

ASCII table

For example, if we want to store char ‘A’ in computer, the corresponding ASCII value will be stored in computer.

ASCII value for capital A is 65.

To store character value, computer will allocate 1 byte (8 bit) memory.

65 will converted into binary form which is (1000001) 2. Because computer knows only binary number system.

Then 1000001 will be stored in 8-bit memory.


Pictorial Explanation

How characters are stored in memory