Re: which is efficent for loop ??
From: ranjeet (ranjeet.gupta_at_gmail.com)
Date: 09/01/04
- Next message: ranjeet: "Re: which is efficent for loop ??"
- Previous message: Steve: "Re: Clearing the screen - Press any key..."
- Next in thread: ranjeet: "Re: which is efficent for loop ??"
- Maybe reply: ranjeet: "Re: which is efficent for loop ??"
- Maybe reply: Paul F. Johnson: "Re: which is efficent for loop ??"
- Reply: Chris \( Val \): "Re: which is efficent for loop ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 1 Sep 2004 00:13:52 -0700
Hi all ,
I would like to accept my fault in writing the code,
The for loop second one is like this
for (int i = 7; i >= 0; ++i) {
/* here goes the manipulation. */
}
Now Actually i dropped this querry as i was looking for the
optimaisation level. Now As i gave the psedode. The code in which i am
using , the initalisaig avlue is 240 so, so definately this second
loop will take less time if we consider on the low level. as i hope it
will reduce the MIPS value thus reducing the complexity .... if i am
wrong then please let me know.
Alwyn <dt015a1979@mac.com.invalid> wrote in message news:<300820042001357945%dt015a1979@mac.com.invalid>...
> In article <c%GYc.1659$TX7.19712203@news-text.cableinet.net>, Ben
> Measures <saint_abroadremove@removehotmail.com> wrote:
>
> > Alwyn wrote:
> >
> > > By that definition, an infinite loop (or recursive call) is iteration,
> >
> > Do useful programs really contain infinite loops? Should it really be
> > left to the OS or the power switch to terminate them?
>
> Many daemons are written that way. It sounds eminently sensible to me.
>
>
> Alwyn
- Next message: ranjeet: "Re: which is efficent for loop ??"
- Previous message: Steve: "Re: Clearing the screen - Press any key..."
- Next in thread: ranjeet: "Re: which is efficent for loop ??"
- Maybe reply: ranjeet: "Re: which is efficent for loop ??"
- Maybe reply: Paul F. Johnson: "Re: which is efficent for loop ??"
- Reply: Chris \( Val \): "Re: which is efficent for loop ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|