Ask coding questions

← Back to all posts
Is ASCII table arbitrary? or not?
SeasonWinter (0)

Are the values associated to letters in the ASCII table arbitrary? like is the value corresponding to letter A arbitrary? what about letter w? 7? + ?

Commentshotnewtop
vedprad1 (694)

Isn't ASCII hexadecimal? Clearly it isn't arbitrary, then.

mwilki7 (152)

Whoever decided the ascii value of zero '0' is 30 may have done this arbitrarily but you can always assume that the standard value of each character does not change*.

*assuming the language you're using follows this standard
theangryepicbanana (687)

Nope, the values are not arbitrary. https://en.wikipedia.org/wiki/ASCII#Character_groups should help show you how they correspond to the letters

SeasonWinter (0)

@theangryepicbanana Howcome? I thought only the value assigned to A is not arbitrary and everything else (most of them) is completely arbitrary

theangryepicbanana (687)

@SeasonWinter how are the rest arbitrary? a-z, A-Z, and 0-9 have incrementing values (e.g. a, b, and c correspond to 97, 98, and 99)