Computer Science, asked by alokyadav49, 1 year ago

what is the value of x1 if x=5. x1=++x-x+++--x​

Answers

Answered by Ayush2322
70
if x is++x,then it converts in the same event but if it is x++ then it is converted but it does not change in this event ,is changes in another event.
x=6-6+6

x=12-6

x=6 is the answer.

Hope it helped you.

alokyadav49: right answer
Ayush2322: welcome
Answered by SerenaBochenek
29

Given :

x=5

x1=++x-x+++--x

To Find :

The value of x1 = ?

Solution :

When x is++x, it will convert in almost the same case, so if it is x++, it will be converted, but in this case it will not alter.

x1 = 6-6+6

   = 12-6

   = 6

So,

The value of x1 is "6".

Similar questions