6. State the value of n and ch when
char c= 'A';
int n= c+1;
char ch= (char)n;
Answers
Answered by
8
Answer:
n=66
ch='B'
Explanation:
'A' ascii value is 65
it is incremented by 1
and integer value stored in n. so n is 66.
char value stored in ch . so 'B'
Similar questions