If the value of m is 5 and n is 4 , after m++ * ++n , the result is?
Answers
Answered by
1
Answer:
Hey, there!!!
Given: m=5 ; n=4
m++ * ++n = 5*5
Answer: 25
Explanation:
m++ means that first you will use the current value and then increment as the ++ is given after "m".
++n means that first you will increment the value since ++ is given before "n" and then use the changed/incremented value to solve the problem.
REMEMBER:-
1) If ++ is given AFTER the variable you use the original value and then change it for the next step.
2) If ++ is given BEFORE the variable you first increment the value and then use it in the first step.
Hope this helps.
Don't forget to like and mark my answer as brainliest!!!
Similar questions