Int w=5, t=9; t++; t=++w + t++
Answers
Answered by
1
Answer:
The operator increases an integer variable by 1. It can only be used with integers. increments before anything. increments after statement.
and both add 1 to . However, returns the new value, and returns the old value.
We have been given and , and we have been asked to find out the value of .
Hence, the value/output of t is 16.
Notes:
- The and can only be used with Integers.
- These operators can also be used as postfixes like and .
Similar questions