http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59264
Bug ID: 59264
Summary: Incorrect order of execution on increament/decrement
operator
Product: gcc
Version: 4.8.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: smaheshs41 at gmail dot com
Created attachment 31281
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31281&action=edit
The Order of execution of the code is not working properly in the 2nd & 3rd
condition the expected output is 13 but 11 but it works correctly in 1st
condition and the result is 13
As in the program stated it works fine when we have two increament/deacrement
operator and one arithmetic operator(+). But, when we try the same thing with
three increament/deacrement operator and two arithmetic operator(+) out off
three conditions only for one condition the code gets executed correctly for
the remaining two conditions it gives incorrect output.