Computer Science, asked by srivastavpranav3136, 5 months ago

In java a=5 b=3 these are int values what will be the result of
float f=a+b/a​

Answers

Answered by bharadwajbb
0

Answer:

6.000000

Explanation:

since all the variables on RHS are int type, then the integer arithmetic is performed so the value is 6. Since the type of variable on LHS is float, the int 6 is type casted to float giving the result 6.000000

Similar questions