If a=10, b=10 ,then what will be the output of a
Answers
Answered by
0
Answer:
First of all you have to reduce one decreament sign and then the question should be as..
If 'b=10', 'a= b--' , so 'a= ?'
And the answer will be '10' because
In c language 'b--' denotes post decreament . So first the same value will saved and printed and then the deacreament will be done by '1'.
So in this question..
'a= 10' and if 'b' will be asked ,, it will be 'b= 9'
Now if 'a=--b'
Here '--b' denotes pre decreament in which first of all all the value is reduced by '1' and then it is saved and printed.
So the value of 'a' will be
'a= 9: and 'b= 9'.
Explanation:
PLEASE MARK MY ANSWER AS BRAINLIEST PLEASE PLEASE...
Similar questions