Answer:
Value of v1:10 value of v2:11
Explanation:
x++ is post increment. so first it will store 10 into v1 and then it will increment to 11. so v1 will give output 10 and x will give 11.
++y is pre increment. so first it will increment to 11 and then 11 will store into v2. so v2 will give 11 and y also will give 11.
[tex]{\fbox{\sf{Answer:-}}}[/tex]
value of v1:10
value of v2:11
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
Answer:
Value of v1:10 value of v2:11
Explanation:
x++ is post increment. so first it will store 10 into v1 and then it will increment to 11. so v1 will give output 10 and x will give 11.
++y is pre increment. so first it will increment to 11 and then 11 will store into v2. so v2 will give 11 and y also will give 11.
Verified answer
[tex]{\fbox{\sf{Answer:-}}}[/tex]
OUTPUT:
value of v1:10
value of v2:11
A bit of explanation of your code: