Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


I=i+1 i++ ++I difference? Please experts explain.

Judging from the functions that is the same.

But from the machinery itself, they have many differences.


Please experts explain.

Thank you!

I=i+1 i++ ++I difference? Please experts explain.

Computer internal processes are different, as follows :
The process is quite i=i+1 :
Temp=i+1; i=temp;
The process is quite i++ :
Temp=i; i=temp+1; return temp;
++i Simple process :
I return i then increasing the value of one step to complete, not to any temperature variables : Assignment)
(No exact formula used the expression, God forgive me stupid :)

I=i+1 i++ ++I difference? Please experts explain.

In fact, I think that as long as :
I++; is a right value. ++i Is a duty and left there. ++i To use as possible, because the large type or category of relevant data types to do the operation more efficient.

I=i+1 i++ ++I difference? Please experts explain.

-->


Right value, the distinction between left-value -

Why, if the high efficiency ++i


Thank you!

I=i+1 i++ ++I difference? Please experts explain.

Simply say that we are on the right values = (assignment operator), the right operand.
Its value can be placed on the left of the left operand.
Value left to admit address and not the right value.
I said ++i i++ use of the high efficiency in terms of the levy. You can see funyoung explanation.

I=i+1 i++ ++I difference? Please experts explain.

Writing process, gcc compendium of the code can understand it.

I=i+1 i++ ++I difference? Please experts explain.

I++ is 1;++i increase after the implementation of the sentence refers to the implementation of the sentence plus one after another;

I=i+1 i++ ++I difference? Please experts explain.

This high efficiency i+=1 written proposal
Refrain from the excessive use i++ and ++i
Will tend to make too many ambiguities ~ ~
Only to the circle of use
When not to use computing

I=i+1 i++ ++I difference? Please experts explain.

As I have said very clearly of postings

I=i+1 i++ ++I difference? Please experts explain.

The use of these Eastern tired already covered everything, or step-by-step analysis of Xieqing!

I=i+1 i++ ++I difference? Please experts explain.

Not sure it should be understood themselves, how can they say for themselves ... What? ? ? ?

I=i+1 i++ ++I difference? Please experts explain.

Oh, Table contradictions. The two said they "clearly" is a different meaning.

I=i+1 i++ ++I difference? Please experts explain.

-->

And the efficiency is not relevant. These three forms alone, the result of the compilation of instructions is the same.

I=i+1 i++ ++I difference? Please experts explain.

I so that the final result is an increase of 100.
I=i+1 is the most common are the most simple, no explanation of the hour.
I++ i=i+1 same if used alone, but he could serve as the variable expression. Quote i values, and then increase the value of i-1;
++i I=i+1 same if used alone, but he could serve as the variable expression. Before invoking the value of i, i values increase.

I=i+1 i++ ++I difference? Please experts explain.

No.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com