Getting Started With C

Arithmetic Operations on Characters

Resources :

Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Q1.

Consider the following code snippet:
char ch = '9';
int result = ch - '0';
What does result store after the execution?

Q2. What is the result of the following expression in C?
char result = 'A' + 3;