how does x++ vs ++x work in c++ code example Example: ++x vs x++ x++ //after assignment ++x //before assignment