arpanmukherjee1
XLr8
hello
i want to know how the Turbo cpp (yes, the dinosaur one) and g++ give different output:
please explain pre and post increment and decrement in this prgs.
also please tell how to obtain output of such prgs
one more thing -> if in expression pre and post increment occure together what is the precedence order??
i want to know how the Turbo cpp (yes, the dinosaur one) and g++ give different output:
Code:
a=10
++a + ++a = 24 (g++) & 23 (TC)
a++ + a++ = 20
++a - a++ = 0 (g++) & -1(TC)
please explain pre and post increment and decrement in this prgs.
also please tell how to obtain output of such prgs
one more thing -> if in expression pre and post increment occure together what is the precedence order??