if x=5, find the value of y; y=(5*++x)%6; y=x*++x;
Answers
Answered by
3
Answer:
Given,
★ We have to find the value of y.
As x becomes 6, pre-increment,
30 divided by 6 leaves remainder 0.
Now,
Learn More:
- Prefix Operator: When increment or decrement operator is used before the operand, it is called prefix operator. In this case, the value of the operand is first incremented or decremented and then operation is carried out.
- Postfix Operator: When increment or decrement operator is used after the operand, it is called postfix operator. In this case, the operation is first carried out and then the value of the operand is incremented or decremented.
•••♪
Similar questions
Math,
1 month ago
English,
1 month ago
Math,
2 months ago
Psychology,
9 months ago
World Languages,
9 months ago