Can some one explain to me the out put of this simple code segment?
int i=7;
int j=3*i-- + 2;
printf("%d %d",i,j)
When I compile I get 6,23.
How does it come to 23? I thought it would be 3*7=21 decrease to 20 and added 2 is 22 not 23?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1 Answer