Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 284177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:26:10+00:00 2026-05-12T05:26:10+00:00

I was teaching C to my younger brother studying engineering. I was explaining him

  • 0

I was teaching C to my younger brother studying engineering. I was explaining him how different data-types are actually stored in the memory. I explained him the logistics behind having signed/unsigned numbers and floating point bit in decimal numbers. While I was telling him about char type in C, I also took him through the ASCII code system and also how char is also stored as 1 byte number.

He asked me why ‘A’ has been given ASCII code 65 and not anything else? Similarly why ‘a’ is given the code 97 specifically? Why is there a gap of 6 ASCII codes between the range of capital letters and small letters? I had no idea of this. Can you help me understand this, since this has created a great curiosity to me as well. I’ve never found any book so far that has discussed this topic.

What is the reason behind this? Are ASCII codes logically organized?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:26:10+00:00Added an answer on May 12, 2026 at 5:26 am

    There are historical reasons, mainly to make ASCII codes easy to convert:

    Digits (0x30 to 0x39) have the binary prefix 110000:

    0 is 110000
    1 is 110001
    2 is 110010
    

    etc.
    So if you wipe out the prefix (the first two ‘1’s), you end up with the digit in binary coded decimal.

    Capital letters have the binary prefix 1000000:

    A is 1000001
    B is 1000010
    C is 1000011
    

    etc.
    Same thing, if you remove the prefix (the first ‘1’), you end up with alphabet-indexed characters (A is 1, Z is 26, etc).

    Lowercase letters have the binary prefix 1100000:

    a is 1100001
    b is 1100010
    c is 1100011
    

    etc.
    Same as above. So if you add 32 (100000) to a capital letter, you have the lowercase version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Teaching myself the flow of data from mySQL -> PHP -> JSON / Javascript
I've been teaching myself C#, and I'm just learning how to use custom data
I’m teaching myself php and I’m stuck with representing a data array coming from
I am currently teaching myself about various data strutures and am a little frustrated
I'm teaching a data structures class this semester and we build gobs of JUnit
I'm teaching myself to use Visual C# 2010 and I don't know what data
Im teaching myself java and the book i'm looking at just got around to
I'm teaching myself Python 3.2 and I'm trying to make a program to match
I am teaching myself C# and one of the current chapters challenges asks me
I'm self teaching myself to do MySQL and PHP. It is a new world

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.