Computer Science, asked by rashmidiwan891, 4 months ago

Write the output for the following code snippet

char ch=’F’;

int m=ch;

m=m +7;

System.out.println(m+” ”+ch);​

Answers

Answered by kabaddi836
1

Answer:

Explanation: This is because adding ‘char’ with integer data type ‘short’, the lower data type ‘char’ converted to integer ‘short’. i.e. ‘A’ becomes 65, so 65+26 is 91

Explanation:

MAKE ME BRAINLIEST ❤️❤️ FOLLOW ME ❤️❤️❤️❤️

Answered by mansi3608
0

Explanation:

(e) write the output:

char ch='F;

int m = ch;

m=m+5;

system.out.println (m+" "+ch);

need answer..

and how you got answer..?

30pts.!

Attachments:
Similar questions