Computer Science, asked by GeekyJS, 8 months ago

state the value of n and ch. (JAVA)
{Please no spam} {If you dont know please dont poop in answer}



char c=’a’;

int n=c-30;

char ch=(char)n;​

Answers

Answered by wwwalison8888a
4

Answer:

A

integer value of small a is 97

97-30=67

the char value of 67 is A

ans is A

#ascii values

plz mark as brainliest.

Answered by anindyaadhikari13
1

Question:-

State the value of n and ch.

Solution:-

Given code,

char c='a';

int n=c-30;

ch=(char) n;

ASCII value of small a is 97

n=c-30=67

ch=(char)n=C

Answer:-

n=67

ch='C'

Similar questions