I'm learning C programming and currently about operators.I'm little confused in a problem from sometimes.please have a at the image
The program is:
#include<stdio.h>
int main()
{
int a=9,b=5,c;
c=a*b++ + --a;
printf("%d",c);
return 0;
}
I think the output should be 48 but it is showing 53.Since --a have the higher precedence so it should be evaluated first and bis post increment so the value of b will be change after the termination of the statement.(correct me if i'm wrong).
Please help .Thankyou in advance.