15th Mar 2018, 12:00 PM
Deep Nandi
Deep Nandi - avatar
4 ответов
+ 5
Because they are different programming languages. All languages have their own rules.
15th Mar 2018, 12:19 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 4
In javascript the value of first x remains 4. In case of php it changes into 6. That's why there is difference in values.
15th Mar 2018, 12:10 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 2
I can see but why is it different in the above two cases?
15th Mar 2018, 12:11 PM
Deep Nandi
Deep Nandi - avatar
+ 2
Oh! I thought every Programming Language has the same concept over increment and decrement operations. I didn't knew that. Thanks for your help . 😀😀
15th Mar 2018, 12:21 PM
Deep Nandi
Deep Nandi - avatar