What is the difference in the behaviour of the following two ststements. Explain the results of x-=5 and x=-5
Answers
Answered by
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
World Languages,
5 months ago
Social Sciences,
5 months ago
Science,
5 months ago
Hindi,
9 months ago
Biology,
9 months ago
Biology,
11 months ago
Math,
11 months ago