Assume that int a=3, b=4, c=-2.then what is the value of ++a + c
Answers
Answered by
3
Answer:
2
Explanation:
int a = 3, b =4, c = -2
++a + c = 4 + (-2)
= 2
Since ++a represents the pre-increment of a, it indicates that the value of 'a' is incremented before using it in the expression.
Similar questions
Math,
4 months ago
English,
4 months ago
English,
9 months ago
Computer Science,
1 year ago
Geography,
1 year ago