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

C / C++ / MFC

 
GeneralRe: C++ Pin
KingsGambit22-Feb-10 18:20
KingsGambit22-Feb-10 18:20 
AnswerRe: C++ PinPopular
Avi Berger22-Feb-10 18:21
Avi Berger22-Feb-10 18:21 
GeneralRe: C++ Pin
Pankaj D.Dubey22-Feb-10 18:30
Pankaj D.Dubey22-Feb-10 18:30 
GeneralRe: C++ [modified] Pin
Avi Berger22-Feb-10 18:43
Avi Berger22-Feb-10 18:43 
GeneralRe: C++ Pin
Pankaj D.Dubey22-Feb-10 18:50
Pankaj D.Dubey22-Feb-10 18:50 
AnswerRe: C++ Pin
«_Superman_»22-Feb-10 19:26
professional«_Superman_»22-Feb-10 19:26 
GeneralRe: C++ Pin
Avi Berger22-Feb-10 19:51
Avi Berger22-Feb-10 19:51 
GeneralRe: C++ Pin
Peter_in_278022-Feb-10 20:52
professionalPeter_in_278022-Feb-10 20:52 
The standard DOES have something to say on this. In the Expressions section introduction, it specifically states <quote>Except when noted, the order of evaluation of operands of individual operators is undefined. In particular, if a value is modified twice in an expression, the result of the expression is undefined except when an ordering is guaranteed by the operators involved. For example,
i = v[i++];    // the value if 'i' is undefined
i = 7,i++,i++; // 'i' becomes 9

</quote>
[Stroustrup, 2nd ed, p492]
So it's not that the standard fails to fully specify, it specifies that the result is undefined.
GeneralRe: C++ Pin
KingsGambit22-Feb-10 21:03
KingsGambit22-Feb-10 21:03 
GeneralRe: C++ Pin
Peter Weyzen23-Feb-10 10:25
Peter Weyzen23-Feb-10 10:25 
GeneralRe: C++ Pin
Avi Berger23-Feb-10 6:34
Avi Berger23-Feb-10 6:34 
QuestionAbout array of BSTR Pin
eight22-Feb-10 16:48
eight22-Feb-10 16:48 
AnswerRe: About array of BSTR Pin
«_Superman_»22-Feb-10 17:01
professional«_Superman_»22-Feb-10 17:01 
QuestionGDI+ Problem! Pin
mostafa_pasha22-Feb-10 11:44
mostafa_pasha22-Feb-10 11:44 
AnswerRe: GDI+ Problem! Pin
Richard Andrew x6422-Feb-10 13:55
professionalRichard Andrew x6422-Feb-10 13:55 
GeneralRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 13:56
LunaticFringe22-Feb-10 13:56 
GeneralRe: GDI+ Problem! Pin
Richard Andrew x6422-Feb-10 13:58
professionalRichard Andrew x6422-Feb-10 13:58 
AnswerRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 13:55
LunaticFringe22-Feb-10 13:55 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 18:51
mostafa_pasha22-Feb-10 18:51 
GeneralRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 19:49
LunaticFringe22-Feb-10 19:49 
AnswerRe: GDI+ Problem! Pin
KingsGambit22-Feb-10 20:57
KingsGambit22-Feb-10 20:57 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 21:28
mostafa_pasha22-Feb-10 21:28 
GeneralRe: GDI+ Problem! Pin
Richard MacCutchan22-Feb-10 22:09
mveRichard MacCutchan22-Feb-10 22:09 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 23:04
mostafa_pasha22-Feb-10 23:04 
GeneralRe: GDI+ Problem! Pin
Richard MacCutchan23-Feb-10 0:07
mveRichard MacCutchan23-Feb-10 0:07 

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.