Computer Science, asked by biswasrai425, 6 months ago

What will be the output of the following segment
char x = 'P'; int m;
m = (x=='p')? 'P':'p';
System out printin ("m=" + m);

Answers

Answered by aryaparge
1

Answer:

m=112

Explaination:

x!='p' threrefore m becomes 112

112 is the ASCII for p

Similar questions