#include
void main()
{
int a=8, b=2, x=8, y=2, sum1, sum2;
/* Increment then add */
sum1=a+(++b);
/* Add then increment */
sum2=x+(y++);
printf(“\nSUM1=%d”,sum1);
printf(“\nSUM2=%d”,sum2);
}
run
SUM1=11
SUM2=10
#include
void main()
{
int a=8, b=2, x=8, y=2, sum1, sum2;
/* Increment then add */
sum1=a+(++b);
/* Add then increment */
sum2=x+(y++);
printf(“\nSUM1=%d”,sum1);
printf(“\nSUM2=%d”,sum2);
}
run
SUM1=11
SUM2=10