on changing this expression to postfix representation and then evaluating it.. I'm getting 17.8 as answer.. if "n" would have been of float type then there is no problem in answer. since n is a variable of integer type, digits after decimal oint should be truncated and answer should be 17 but the output is 15. how?
#include<stdio.h>
int main()
{
int i=3,a=4,n;
float t =4.2;
n=a*a/i+i/2*t+2+t;
printf("n = %d\n",n);
return(0);
}