trying googling sequence point and u will understand why it is an undefined behaviour