if b=10 and c=5 then what will be the value of a,b and c after the execution of following statement a=b++-c*2
Answers
Answered by
5
Question:-
- a=b++ - c*2;
To find:-
- The value of a,b,c after the execution of the statement
Solution:-
a=b++ - c*2
>>>a=10- 5*2. Now b changes to 11
>>>a=10-10. Applied BEDMAS RULE..
>>>a=0
Answer:-
- The final value of a,b,c is mentioned below
a➡️0
b➡️11
c➡️5
Similar questions