Computer Science, asked by anusuyarout16, 8 months ago

Find output:
char x = t,
System.out.printin (x);
System.out.printin (x+3);​

Answers

Answered by CoderRishav
1

Answer:

the question is wrong you have to give char in single quotes ' ' .

Explanation:

char x = 't';

Sopln(x); // t

Sopln(x + 3); //w

output

t

w

please mark as brainlist

Answered by anindyaadhikari13
27

Question:-

Write the output of the following code.

Solution:-

Given code,

char x=t;

System.out.println(x);

System.out.println(x+3);

The above code contains error,

Write char x='t' in the first line.

At first, t is printed.

ASCII value of t is 116

x+3=119

So, 119 is printed.

Output:-

t

119

For verification,check out the attachment.

Attachments:
Similar questions