{JAVA}
State the value of n and c:
int x= ‘A’;
int n = x + 32;
char c = (char) n;
Answers
Answered by
1
Answer:
n=97
c= 'a'
Explanation:
n=65(which is the int value of 'A')+ 32
=97
c= char n
(as n is 97.... the char value with respect to 97 is 'a')
Hence, c='a'
Answered by
0
Explanation:
n =97
c='a'
hope it is correct
Similar questions
Chemistry,
4 months ago
Hindi,
4 months ago
English,
9 months ago
India Languages,
9 months ago
Music,
1 year ago