• Post Reply Bookmark Topic Watch Topic
  • New Topic

ascii value of 'a'  RSS feed

 
ramchander yshetti
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
the 65 is the ascii of 'a'
what is '\141' also equal to 'a'
please clear this

bye
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, an ascii value of 65 is not "a" -- it is capital "A". Lower case "a" has an ascii value of 97.

Now, the reason '\141' is "a", is because character escapes uses an octal value. And an octal 141 is 97.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!