Write the value of n after execution: char ch = 'd'; int n = ch+5;
Advertisements
Question
Write the value of n after execution:
char ch = 'd';
int n = ch+5;Numerical
Advertisements
Solution
105
Explanation:
ASCII code of 'd' is 100.
∴ 100 + 5 = 105
shaalaa.com
Is there an error in this question or solution?
