if a =6 find the value of a+ = ++a + a++ + 4
Answers
Answered by
7
Answer:
a+=6+7+4
a+= 17
not sure
Answered by
2
Answer:
Step 1:a=6 (given)
Step 2:b= (++a)+(a++)+(a++) ––––(1)
Explanation:
- ++a=7 (pre-increment) so (6+1=7) will be assigned to a.
- a++=7 (post increment) it will remain same here, then value of a will be 8 in next step
- a++=8 (post increment) so now value of a will be 9 for further.
Step 3: Now put the values of these three sub- steps in eq. (1) to get value of b.
b=7+7+8=22.
step 4: in sub step (3) we can say value of a=9.
so,a=9, b=22.
Similar questions