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
1
Answer:
m=112
Explaination:
x!='p' threrefore m becomes 112
112 is the ASCII for p
Similar questions
English,
2 months ago
Math,
2 months ago
CBSE BOARD X,
6 months ago
Science,
11 months ago
English,
11 months ago