state the value of z after the following is executed?
char x = 'a;
int y=7
int z=x+y
Answers
Answered by
1
correction:
char x = 'a';
int y=7;
int z=x+y;
Answer:
104
Explanation:
x has ASCII value of 97.
JAVA converts it to that value and adds y in it.
Similar questions