So when thinking about the output my thought process went like this : for the first if condition I thought that since its post increment operator , i value will be used first and then increased so it will execute the if condition and increment the value of i therefore printing output 11 is good for the second if condition