Computer Science, asked by Shauna05, 10 months ago

6. State the value of n and ch when
char c= 'A';
int n= c+1;
char ch= (char)n;​

Answers

Answered by pavithranatarajan855
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