depends on the requirement of the code... On Thu, Sep 22, 2011 at 11:00 AM, DIPANKAR DUTTA <[email protected] > wrote:
> Depends on compiler architecture , and how they > use instruction set architecture ( Increment Op) of underlining machine.... > > On Thu, Sep 22, 2011 at 7:21 AM, Don <[email protected]> wrote: > >> If the value of the expression is not being used, ++n is preferred. >> Most coding standards used by big companies require the prefix >> operator to be used unless the pre-incremented value is required. >> Don >> >> On Sep 22, 7:54 am, Sahil Garg <[email protected]> wrote: >> > n=n+1 >> > >> > n++ >> > >> > ++n >> > >> > which of the three is better ?? >> > >> > Sahil Garg >> > Computer Engg. DCE >> >> -- >> 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. >> >> > > > -- > Thanks and Regards, > ------------------------------ > **DIPANKAR DUTTA > Software Development Engineer > Xen Server - OpenStack Development Team (DataCenter and Cloud) > > Citrix R&D India Pvt Ltd > 69/3, Millers Road, Bangalore – 560052 > Phone: +91 8147830733 > Office: Extn: 16429 > Email: [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.
