This is just a quick question about when calculations are performed in a line of C++. Say I have the following block:
int numItems = 0;
inventory[numItems++] = "sword";
inventory[numItems++] = "armor";
inventory[numItems++] = "shield";
the ++ operator increments the array number of inventory AFTER it reaches the ; operator? All POST operations are performed at the end of a statement, and all PRE operations are performed at the beginning of a statement. Is that correct?
Just trying to make sure I have my head around how the code looks at things.