OOPS
August 29, 2024OOPS
August 29, 2024OOPS
|
Question 131
|
Which of the following is not correct in C++?
|
x-=2; is the same as x=x-2;
|
|
|
x*=2; is the same as x=x*2;
|
|
|
x%=2; is the same as x=x/2;
|
|
|
x/=2; is the same as x=x/2;
|
Question 131 Explanation:
→ x%=2; is not the same as x=x/2;
→ x%=2; is the same as x=x%2;
→ x%=2; is the same as x=x%2;
Correct Answer: C
Question 131 Explanation:
→ x%=2; is not the same as x=x/2;
→ x%=2; is the same as x=x%2;
→ x%=2; is the same as x=x%2;
