Solve the following expression and write the final values of variables a, b and c. If initially a=5, b=7, c=6 a=-b+++a-c---b+b*c
Answers
Answered by
3
Answer:
Increment and decrement operators are unary operators that add or subtract one, to or from their operand, sequentially. They are commonly implemented in imperative programming languages like java, c, c++ the increment operator increments the value of the variable by one, and similarly, the decrement operator decrements the value of the variable by one.
a=6
a++ // a becomes 7
++a // a becomes 8
a-- // a becomes 7
--a // a becomes 6
Please give me thank pls please thank me
Similar questions
English,
18 days ago
Physics,
18 days ago
Math,
1 month ago
Political Science,
9 months ago
Chemistry,
9 months ago