Computer Science
If m = 5, n =2; what will be the output of m and n after execution?
(a) m -= n
(b) n = m + m/n;
Java Operators
27 Likes
Answer
(a) m -= n
m -= n
⇒ m = m - n
⇒ m = 5 - 2
⇒ m = 3
(b) n = m + m/n;
n = m + m/n
⇒ n = 5 + 5 / 2
⇒ n = 5 + 2
⇒ n = 7
Answered By
10 Likes
Related Questions
Define the following with the help of truth table:
Bitwise OR
Define the following with the help of truth table:
Bitwise XOR
What will be the output when the following statements are executed?
int v,s,n=550; s = n + v > 1750? 400:200;
When,
(a) v = 500
(b) v = 1500
If a = 0, b = 30, c = 40; then find the value of 'a' when:
a += --b + c++ + b;