I know its silly but once i tried this and output is not what it should be..
#include<stdio.h>
#include<conio.h>
int main()
{
int i=0;
i=i++;
printf(i);
}
i MEAN post increment will store a value, say 0 here.and then increment but that value is given to the variable i again by the assignment operator which is printed .the ouput is 1 but it should be 0.