State the value of n and c:
int x= ‘A’;
int n = x + 32;
char c = (char) n;
explain how ?
Answers
Answered by
0
Answer:c= 'a'
Explanation:
int x= 'A'; (=> x=65)
int n=x+32; (=> n=97)
char c=(char)n; (=> c='a')
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
English,
9 months ago
Math,
9 months ago
Math,
11 months ago