violation of sequence point rule....output depends on compiler to compiler.

On Tue, Jul 3, 2012 at 1:22 PM, rahul sharma <[email protected]>wrote:

> #include<stdio.h>
> #include<conio.h>
> int main()
> {
>     int i;
>     i=5;
>     i=++i/i++;
>     printf("%d",i);
>     getch();
> }
>
> Why o/p is 1 and not 2??   what happened for post increment???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to