Click here to Skip to main content
15,915,698 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generali++ as referance Pin
Ranjish4-Jan-05 2:20
Ranjish4-Jan-05 2:20 
GeneralRe: i++ as referance Pin
BlackDice4-Jan-05 2:32
BlackDice4-Jan-05 2:32 
GeneralRe: i++ as referance Pin
Anonymous4-Jan-05 2:40
Anonymous4-Jan-05 2:40 
GeneralRe: i++ as referance Pin
Ryan Binns4-Jan-05 2:52
Ryan Binns4-Jan-05 2:52 
GeneralRe: i++ as referance Pin
Ranjish5-Jan-05 2:27
Ranjish5-Jan-05 2:27 
GeneralRe: i++ as referance Pin
Ryan Binns5-Jan-05 12:18
Ryan Binns5-Jan-05 12:18 
GeneralRe: i++ as referance Pin
Ryan Binns4-Jan-05 2:42
Ryan Binns4-Jan-05 2:42 
GeneralRe: i++ as referance Pin
BlackDice4-Jan-05 2:43
BlackDice4-Jan-05 2:43 
[edit] Just Googling, I got this from this page: http://cpptips.hyperformix.com/cpptips/inline_seq_pt[^]

the result would either be `1 - 2' OR `2 - 1'.  But, it is a safe
operation and the result MUST be one of these two values.  Please note
this is very different from code like:

	int main() {
	   int x = 0;
	   return ++x - ++x;
	}

which results in UNDEFINED behavior.  This program may return -1, 1,
42, or it may crash.  That's because it modifies the same variable in
an expression without an intervening "sequence point".  There's a
"sequence point" at the call to a function after evaluating all the
arguments (which is why the first two main() functions are legal).
There's also sequence points at the operators &&, ||, ?, and comma.



My articles

www.stillwaterexpress.com

BlackDice
GeneralRe: i++ as referance Pin
Michael Dunn4-Jan-05 10:54
sitebuilderMichael Dunn4-Jan-05 10:54 
GeneralFolder Surveillance Pin
Anonymous4-Jan-05 2:13
Anonymous4-Jan-05 2:13 
GeneralRe: Folder Surveillance Pin
Maximilien4-Jan-05 2:26
Maximilien4-Jan-05 2:26 
GeneralRe: Folder Surveillance Pin
David Crow4-Jan-05 2:37
David Crow4-Jan-05 2:37 
GeneralRe: Folder Surveillance Pin
Jesse Evans4-Jan-05 11:10
Jesse Evans4-Jan-05 11:10 
QuestionHow to Search FrontPage Pin
Lavani4-Jan-05 1:56
Lavani4-Jan-05 1:56 
AnswerRe: How to Search FrontPage Pin
David Crow4-Jan-05 2:40
David Crow4-Jan-05 2:40 
GeneralRe: How to Search FrontPage Pin
Anonymous4-Jan-05 18:08
Anonymous4-Jan-05 18:08 
GeneralRe: How to Search FrontPage Pin
lavanii4-Jan-05 18:14
susslavanii4-Jan-05 18:14 
GeneralRe: How to Search FrontPage Pin
David Crow5-Jan-05 2:26
David Crow5-Jan-05 2:26 
QuestionProfile tool for VC++6 ? Pin
GuimaSun4-Jan-05 1:44
GuimaSun4-Jan-05 1:44 
AnswerRe: Profile tool for VC++6 ? Pin
Blake Miller4-Jan-05 8:47
Blake Miller4-Jan-05 8:47 
GeneralProblem with MessageBox() Pin
realloc4-Jan-05 1:24
realloc4-Jan-05 1:24 
GeneralRe: Problem with MessageBox() Pin
Blake Miller4-Jan-05 8:51
Blake Miller4-Jan-05 8:51 
GeneralRe: Problem with MessageBox() Pin
realloc4-Jan-05 11:51
realloc4-Jan-05 11:51 
GeneralRe: Problem with MessageBox() Pin
Blake Miller4-Jan-05 12:07
Blake Miller4-Jan-05 12:07 
GeneralRe: Problem with MessageBox() Pin
realloc4-Jan-05 13:56
realloc4-Jan-05 13:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.