Code:
int main()
{
int i=1;
i = i++ + ++i + ++i + i++ + ++i;
printf("%d\n",i);
i=1;
i = i-- - --i - --i - i-- - --i;
printf("%d\n",i);
return 0;
}
16
2
Thanks
Shabbir Bhimani
|
Go4Expert Founder
|
![]() |
| 19Jul2005,17:24 | #1 |
|
Can anyone explain the output of the following program
Code:
int main()
{
int i=1;
i = i++ + ++i + ++i + i++ + ++i;
printf("%d\n",i);
i=1;
i = i-- - --i - --i - i-- - --i;
printf("%d\n",i);
return 0;
}
16 2 Thanks Shabbir Bhimani |
|
Team Leader
|
![]() |
| 19Jul2005,17:27 | #2 |
|
I could never get past this operators.
|