R
Rajorshi
Hi,
I am relatively new to c programming. I have a question regarding C's
increment (++) operator. KnR says that unary operators like ++ associate
from right to left. Having that information, I still dont understand in
which order the following statements are evaluated :
x+++y
x++++y
x+++++y and so on.
I mean how does the compiler decide
whether
x+++y is x + (++y) or (x++) + y .
I am obviously missing something...
Thanks in advance!
I am relatively new to c programming. I have a question regarding C's
increment (++) operator. KnR says that unary operators like ++ associate
from right to left. Having that information, I still dont understand in
which order the following statements are evaluated :
x+++y
x++++y
x+++++y and so on.
I mean how does the compiler decide
whether
x+++y is x + (++y) or (x++) + y .
I am obviously missing something...
Thanks in advance!