Possible Duplicate:
Post Increment and Pre Increment concept?
I cant understand how the "if condition" works with the increment/decrement operator in this scenario:
#include<stdio.h>
void main()
{
int n=0;
if(n++)
{
printf("C-DAC");
}
else if(n--)
{
printf("ACTS");
}
}
Its output is ACTS.
what is happening in the IF condition?