Home /
Expert Answers /
Computer Science /
what-are-variables-39-values-after-the-following-code-segment-is-executed-short-duration-5-d-pa456
(Solved):
What are variables' values after the following code segment is executed? short duration \( =5 \) d ...
What are variables' values after the following code segment is executed? short duration \( =5 \) duration \( = \) duration \( +5 \) duration: 4
What are variables' values after the following code segment is executed? int volume =2; int area = 7; volume \( += \) area;
Solution - What are variables' values after the following code segment is executed? short duration = 5; duration = duration + 5; duration: 10 Answer = 10 Reason - here duration is decla