I am new to C. Sorry for such a basic question.
int ArrayIndex = 0;
int intArray[ArrayIndex++] = somevalue;
I have read a book that says when exactly postfix increment/decrement is performed is not a simple question to answer. The book also says vaguely about a concept called sequence points to answer the question. It says updating the value[incrementing/decrementing] will take place between the previous and next sequence point. The example for such a sequence point is end of an expression statement.
My question is, will the above code snippet always assign some value to array index zero and increment ArrayIndex, in all compilers/platforms? Is there a chance that ArrayIndex is incremented first and then somevalue is assigned to intArry[1];?
Can anybody shed some light?