Why
i = ++i; is undefined
but
i = func(++i); is defined ?
I know there is a sequence point after a call to a function
after the arguments have been evaluated. But I am not able
to visualise how the sequence point makes the second statement
defined ? Also can someone give me a detailed explanation of
why first statement is undefined ?
Thanx for any help in advance...
i = ++i; is undefined
but
i = func(++i); is defined ?
I know there is a sequence point after a call to a function
after the arguments have been evaluated. But I am not able
to visualise how the sequence point makes the second statement
defined ? Also can someone give me a detailed explanation of
why first statement is undefined ?
Thanx for any help in advance...
Comment