If m=5, n=2; what will be the output of m and n after execution?
i. m -= n ii. n = m + m/n
151 Likes
i. m -= n⇒ m = m - n⇒ m = 5 - 2⇒ m = 3
ii. n = m + m/n⇒ n = 5 + 5/2⇒ n = 5 + 2⇒ n = 7
Answered By
103 Likes
What will be the output of the following if x=5?
i. 5 * ++xii. 5 * x++
Distinguish between the following:
Increment and Decrement Operator
/ and % operator
If x = 3, y = 7, calculate the value of:
x -= x++ - ++y