In java a=5 b=3 these are int values what will be the result of
float f=a+b/a
Answers
Answered by
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
Business Studies,
4 months ago
Hindi,
4 months ago
Math,
4 months ago
English,
8 months ago
Geography,
1 year ago