How do I obtain the ASCII code of a character?

Posted by sterh on Stack Overflow See other posts from Stack Overflow or by sterh
Published on 2010-03-15T14:18:28Z Indexed on 2010/03/15 16:09 UTC
Read the original article Hit count: 135

Filed under:

Hello, I have a char variable, declared for example as:

char a = 's';

How can I get the ASCII code of this symbol?

Thank you.

© Stack Overflow or respective owner

Related posts about qt