Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello, i try to study bout ascii code today
i got some information from Lesson 6.6 : How numbers are encoded as characters in ASCII - YouTube[^]

i got some question about 'flag' in ascii

as what has been mention in this video the 1st 3 digits in ascii code

010 represent upper case char
011 represent lower case char

so in this example, i can assume that the 3rd flag will determine it is big capital or small capital letter

i try to google about how ascii code works
mostly i found they never explain about the 'flag'

can someone please make a simple explaination about how the 1st 3 digits work

thank you

What I have tried:

how actually an ascii code works
Posted
Updated 13-Jun-16 0:14am

1 solution

If you convert the ascii value for a letter into binary you'll see all the lower case ones start "011", so "a" is 01100001 and "z" is 01111010, and the upper case with "010" so "A" is 01000001 and "Z" is 01011010.

ASCII - Binary Character Table[^]

By "flag" they mean the position of one of the units (which can be 0 or 1). So third flag means the third digit from the left. A flag is anything that can be considered on or off, true or false etc.
 
Share this answer
 
v2
Comments
rolandoelninoz 13-Jun-16 6:23am    
thank you sir for the explanation,
what about the 1st and 2nd flag, i mean how it works on ascii..
F-ES Sitecore 13-Jun-16 6:28am    
They don't have any special significance, a to z is 97 to 133 (in decimal) and A to Z is 65 to 90, that's just their given values.
rolandoelninoz 13-Jun-16 6:30am    
noted.. thanks.. :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900