OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024

OOPS

Question 131
Which of the following is not correct in C++?
A
x-=2; is the same as x=x-2;
B
x*=2; is the same as x=x*2;
C
x%=2; is the same as x=x/2;
D
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;
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;

Leave a Reply

Your email address will not be published. Required fields are marked *