a.) int main()
{
int i=10;
i=i++;
printf("%d",i);
}
b.) int main()
{
int i=10;
printf("%d %d %d",i,i++,++i);
}
Question:
a) In part (a) i want to know that once the i value is assigned to i itself , after that increment should be done but the output
comes out to be same which is 10, i want to know y i in not incremented
b.) The (b) part gives the output 12,11,12 and i have no idea y it is printing like this , Pls give me the explanation of both parts!
Thanks in advance :)