m=1010 and n=1010
m++ / ++n * n-- / --m
Answers
Answered by
0
》1010/1011*1011/1010
》1010/1010
》1
the value of m is post increment which means the value of m is increased by 1 which is increased is memory but will work after m value is changed again..so now m value is 1011 instead of 1010 as it will not print and value --m is now 1010 because 1011 - 1 = 1010 as it is pre decrement..
the value of n is pre increment which means the value of n will be printed instead of saving it in memory like we saw in case of m value..so ++n is 1011 and value n-- will remain same as it is post decrement and not pre increment
REMEMBER THAT: if value of a variable is in pre increment/decrement, only then the value of that same variable will be printed by +1 or -1..
Similar questions