Advertisements
Advertisements
Question
State the values of n and ch.
char c = 'A'
int n = c + 1;
char ch = (char)n;
One Line Answer
Solution
The value of n = 66 and ch = B.
shaalaa.com
Is there an error in this question or solution?
State the values of n and ch.
char c = 'A'
int n = c + 1;
char ch = (char)n;
The value of n = 66 and ch = B.