0 votes 0 votes How to store ASCII value of a characters in c? Example: main() { char CH='A'; printf("%d",CH ); return 0; } I want to store this o/p in a variable. diwakar1996 asked Jan 4, 2017 diwakar1996 248 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes characters are mapped to unsigned intergers.(ASCII) int CH = 'A'; // CH stores 65 Aegon answered Jan 4, 2017 Aegon comment Share Follow See 1 comment See all 1 1 comment reply diwakar1996 commented Jan 4, 2017 reply Follow Share Thanks its work 0 votes 0 votes Please log in or register to add a comment.