Thanks Naveen..........

On Tue, Aug 2, 2011 at 3:13 PM, naveen shukla <
[email protected]> wrote:

> Actually incrementing and decrementing whether pre and post will not
> affect in this case  because (increment and decrement ) will be done
> before checking the condition.
>
> As in for loop three sequential steps are .....
>
> 1. Initialization
> 2. Checking condition
> 3. Increment or decrement
>
>
> On Tue, Aug 2, 2011 at 2:56 PM, Vijay Khandar <[email protected]>
> wrote:
> > for(i=1,j=10;i<6;++i,--j)
> > pf("%d %d",i,j);
> >
> > and
> >
> > for(i=1,j=10;i<6;i++,j--)
> > pf("%d %d",i,j);
> >
> > why this both giving same o/p, since one is pre and other is
> > post........plz explain me........
> >
> >
> > --
> > 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.
> >
> >
>
>
>
> --
> From:
>
> Naveen Shukla
> IIIT Allahabad
> B.Tech IT 2nd year
> Mob No: 07860896972
> E-mail [email protected]
>          [email protected]
>
> --
> 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