A
Amit
Which is more efficient and why?
p++ or ++p.
Thanks.
p++ or ++p.
Thanks.
Amit said:Which is more efficient and why?
p++ or ++p.
Amit said:Which is more efficient and why?
p++ or ++p.
Which is more efficient and why?
p++ or ++p.
Which is more efficient and why?
p++ or ++p.
Tom St Denis said:Amit said:Which is more efficient and why?
p++ or ++p.
Open ended question. Faster in what context? What compiler? What target?
To GCC it makes no nevermind. To an older compiler without an optimizer
++p is almost always faster [specially for older 8-bit MCUs].
Which is more efficient and why?
p++ or ++p.
roll "technically correct"?Peter "Shaggy" Haywood said:Groovy hepcat Amit was jivin' on 14 Jul 2003 13:49:00 -0700 in
comp.lang.c.
Which is more effecient ?'s a cool scene! Dig it!
What is the sound of one hand clapping?
--
Dig the even newer still, yet more improved, sig!
http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technically correct" English; but since when was rock &
++p would be the more efficient because p wouldn't have to be evaluated
before being incremented.
Tell me if I'm wrong guys.
HongKongHooker said:++p would be the more efficient because p wouldn't have to be evaluated
before being incremented.
Tell me if I'm wrong guys.
++p would be the more efficient because p wouldn't have to be evaluated
before being incremented.
Tell me if I'm wrong guys.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.