Computer Science, asked by krithi05, 9 months ago

What is the difference in the behaviour of the following two ststements. Explain the results of x-=5 and x=-5

Answers

Answered by charlie1505
7

Answer:Here the first statementx-=5 means x=x-5for eg Consider value of x is 3 then, x=8-5=32nd statement x=-5 means -5 is assigned to x

In programming language '=' is assignment operator

Hope it will help

Similar questions