Computer Science, asked by IpsitaMohanta25, 6 months ago



d) What is the output of the following program snippet:

char k='D';

int a=16; float b=29.78;

System.out.println((int)k+a);

System.out.println(“The ans=”+a+b);​

Answers

Answered by Anonymous
0

Answer:

output

84 (ASCII value of D is 68.

the ans= 45.78

Explanation:

please mark as brainliestes and follow me

Answered by nainaparween051
0

Answer:

System.out.println(int)k+a);

Similar questions