I hav one doubt regarding post decriment,the code in c is as follows.............
void main()
{
clrscr();
while(i--!=6)
i=i+2;
printf("%d\n",i);
getch();
}
I know the output is 5, but i read in a book dat the post incriment or decrement operators are evaluated after reaching semicolon(;).....but in while condition,the ondition fails so it wont execute the next line so, directly reaches printf.Till now there is no semicolon still the i value is decresed......wts da reason...can u sugest me..?
Thanks & Regards.