Computer Science, asked by GeekyJS, 9 months ago

{JAVA}
State the value of n and c:

int x= ‘A’;

int n = x + 32;

char c = (char) n;​

Answers

Answered by atharvbheda
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 soumya235
0

Explanation:

n =97

c='a'

hope it is correct

Similar questions