Since 7/13/2012 5:42:30 PM, yogeshpacheria has written 1 articles and participated in 1 conversations. yogeshpacheria signature:
yogeshpacheria's articles:
Items(1) /1
Pre And Post Increment Operator Output5956 (6/21/2012 7:56:31 PM) comp.lang.c I tried this Code
int main()
{
int i = 0;
i = ++i + ++i + ++i;
printf("%d",i);
}
Output should be 6
But In GCC it's 7
How and plz tell the order of evalution of pre and post bot
Th... Yogesh
yogeshpacheria's replies:
Items(1) /1
Pre And Post Increment Operator Output5956 (6/21/2012 7:56:31 PM) comp.lang.c I tried this Code
int main()
{
int i = 0;
i = ++i + ++i + ++i;
printf("%d",i);
}
Output should be 6
But In GCC it's 7
How and plz tell the order of evalution of pre and post bot
Th... yogeshpacheria(2)