double m=45.15; int n=(int)m/5; What is the value of n?
Answers
Answered by
0
Answer:
n=5
Explanation:
This is an example of explicit or forced conversion where double m is forcefully converted to integer value.
Therefore during the calculation compiler ignores the numbers after decimal .
int n = (int)m/5
n=45/5
n=15
45.15 is automatically converted to 45 due to (int) command
Hope it helps
PLZ MARK BRAINLIEST
Similar questions