a++ + ++b%a-- + if a=15 and b=6
Answers
Answered by
5
To solve:-
- a++ + ++b%a-- + a
Given:-
- a=15
- b=6
Let's Solve...
a++ + ++b% a-- + a
15 + 7%16 +15
15+ 7 +15
37
Correct Answer:-
- a=15
- b=7
- a++ + ++b% a-- + a = 37
Always Remember!
- Prefix Operators :- They increase/decrease their value before moving forward. ++x,--x are prefix increment/decrement operator.
- Postfix Operators :- They increase/decrease their value after moving forward. ++x,--x are prefix increment/decrement operator.
Operator Precedence:-
Similar questions