Code:array[i++] = 5;I know first one works fine now with second i was never confident so up to now i played it safe by doing i++ on separate statement.Code:array[i++] = //super long expression
I'd like to clear this once and for all. When does the increment of i actually happen? Is it safe to expect that the value of i used to store something in array will always be i before increment?