+ 1
For more than one format specifiers, why compiler evaluate it from the last ?
Like if there is( "%d%d%d%d", i ,i++,i--,++i)...so why the order of evaluation in C is 4-3-2-1, means from the last . Please Explain me.
1 Resposta
+ 3
What matters here is not the format specifier, it is multiple access and modification of the arguments that matters, the output is compiler implementation dependent, we can't expect a firm output because of this.
Tips: Avoid at best, accessing and modifying a value in a sequence point, how the operation is performed is unpredictable.
Hth, cmiiw