Computer Science, asked by mayanktanishk2006, 8 months ago

If A=2, then what will be the value of given expression : (A++) + (++A) -( A--)​

Answers

Answered by iambhaskar6258
0

Answer:

4 is the answer

Explanation:

A++ means first assigned then incremented so...A=A...after That A=A+1..then...A=2 after thet A=A+1=3... ...++A means Added then assigned means...A=A+1...Then A=A...=>>>4.because ..the value Have been updated in above instruction..only...A--Also same Assigned then A=A..A=A-1=3...the ToTal Is 3+4-3=4 is the answer.....

Similar questions