>>3
If you don't know the answer to >>1, it doesn't fucking matter which one is more efficient. Stop posting this bullshit all over my /prog/
Name:
Anonymous2007-10-09 3:45
They both generate the exact same machine code unless your compiler is completely brain dead.
Name:
Anonymous2007-10-09 3:59
OP Here enjoy your dumbassatry I asked the question because I did not know the answer I am gonna go cut my wrist know thats what I get for posting on forCon!
Name:
Anonymous2007-10-09 4:05
With operator overloading, WHO THE FUCK KNOWS.
Also in an expression ++x can be more efficient than x++ (which can end up doing a copy).
Go C++.
Name:
Anonymous2007-10-09 4:12
OP should learn some assembler. Then should learn what a compiler is. Then should die.
Name:
Anonymous2007-10-09 8:49
If you do not have an optimizing compiler, then ++x is faster than both x=x+1 and x++. The latter two would be more or less the same.
HOWEVER, I don't know when the last time was that a compiler was retarded enough not to optimize all three versions to what ++x does, so you would NEVER need to worry about this. Ever.
Name:
Anonymous2007-10-09 10:03
Lol Cfags
Name:
Anonymous2007-10-09 13:00
>>10
HAHAHAHAHAHAHAHHAHAHAHAAHAHAAAA!!!
you think your tough huh?
Name:
Anonymous2007-10-09 15:36
It's a trick question because they do the same thing, ++x is the fastest