Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++

Name: Anonymous 2008-09-17 13:47

1) Why do people not like C++?
2) Is C++ a good language to learn programming? Mind you, you don't need to use any of the advanced features.

Name: Anonymous 2008-09-24 3:46

>>9
++value
This increments a value and returns the incremented value (called "preincrement").

value++
This increments a value and returns the value before incrementing (called postincrement).

In terms of assembly, it may take an extra instruction and/or one more register (or extra stack space) to accomplish postincrementing.

Of course, if you have a decent compiler it should optimize out any postincrements where the value is unused to be preincrements.  Furthermore, in general with optimizations on, they are pretty synonomous and it's more the order of operations.

So... what is the real difference?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List