Computer Science, asked by baski3d, 5 months ago

If s = 10 find a= s++ + ++s + --s.
Please solve fast and correctly.

Answers

Answered by shijiwilson
0

Answer:

s=10 a= s++ + ++s + --s.

a= 10 +12+ 11

a= 22 + 1 1

a= 33

s= 1 1

Explanation:

S++ is post increment so fist use it then apply. ++S is pre increment so first increment, then use it. The same way, --S is pre decrement, so first decrement then use it. (Increment means Add and decrement means Subtract). Hope it helps u.

Answered by anindyaadhikari13
2

Question:-

If s=10, find a when a=s++ + ++s + --s

Solution:-

Given,

s=10

a=s++ + ++s + --s

Or,

a=10+12+11

Or,

a=33

Now,

s=11

Answer:-

s=11

a=33

Similar questions