priority of operations

Started by vedro-compota, May 15, 2012, 11:48:11 AM

Previous topic - Next topic

vedro-compota

Ah ... I understand you completely. "priority" does not relevant to the problem -  as it had been said ... - as frankie said  =
QuoteThis is not a problem of priorities

CommonTater

Quote from: vedro-compota on May 28, 2012, 04:00:28 PM
[CommonTater , I  got this problem from practise had quickly solved it by replacing 
str++; next= str; by next= str++
and only after that I asked why
next= str++ "doesn't work" ))

More exactly ... it did work, it just didn't do what you expected.


vedro-compota

#17
one more my mistake (due to carelessness - during post typing).... -
replacing
next= str++
by
str++; next= str; // actually i needed firstly incremented str

CommonTater

Quote from: vedro-compota on May 28, 2012, 04:52:33 PM
one more my mistake.... -
replacing
Code: [Select]

str++; next= str;
next= str++
by
str++; next= str; // actually i needed firstly incremented


Then you could have used....

next  = ++str;   



vedro-compota

one more my mistake (due to carelessness - during post typing).... -
replacing
next= str++
by
str++; next= str; // actually i needed firstly incremented str

yes - next  = ++str;  is alternative)
I've understand this  from your first answer in this thread))