Increment and decrement confusion...
a = 5; b = 6; a = b++; c = ++a; document.write(a+c); //output : 14 ? why : not 13?
a = 5 b = 6 a = b++ (a = 6, b = 7) c = ++a (c = 7, a = 7) a + c = 14 If the plus signs are before the varible then it adds one before considering the rest of the equasion, if it is after, it adds one after the equation is done
a=b++ a=6 c=++a c=7 and a=7 as well
After a=b++; A becomes 6 and b becomes 7 After c=++a; A becomes 7 before assigning value to c, so c is 7 too. (7+7=14)
Thank you very much Brain & Bones [user id="9186843"]Abhay[/user] [user id="10500547"]Aleksei Radchenkov[/user]
Unable to overload +
I have tried every way I could find but still I can't display my local images ..what am I doing wrong?
Pls rectify the errors.
Python list half printed
Find the error please.