Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC++sequencing and evaluation orderSingle-choice MCQ

In this code, what does the standard guarantee about the order of evaluation of the two `i++` subexpressions and the write to `a[i]`?

int i = 0; int a[3] = {0, 0, 0}; a[i++] = i++; // does this have defined behavior?