depends on the requirement of the code...
On Thu, Sep 22, 2011 at 11:00 AM, DIPANKAR DUTTA 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 wrote:
>
>> If the value of
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 wrote:
> If the value of the expression is not being used, ++n is preferred.
> Most coding standards used by big companies require the
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 wrote:
> n=n+1
>
> n++
>
> ++n
>
> which of the three is better ?
No modern compiler will see these as different. Use the one you find
prettiest.
On Sep 22, 8:54 am, Sahil Garg 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
"A