Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a real problem i been facing in release mode Pin
jone201329-Jan-14 21:33
jone201329-Jan-14 21:33 
AnswerRe: a real problem i been facing in release mode Pin
Jochen Arndt9-Jan-14 21:08
professionalJochen Arndt9-Jan-14 21:08 
GeneralRe: a real problem i been facing in release mode Pin
jone201329-Jan-14 21:24
jone201329-Jan-14 21:24 
AnswerRe: a real problem i been facing in release mode Pin
Stefan_Lang9-Jan-14 22:34
Stefan_Lang9-Jan-14 22:34 
GeneralRe: a real problem i been facing in release mode Pin
jone2013210-Jan-14 9:43
jone2013210-Jan-14 9:43 
AnswerRe: a real problem i been facing in release mode Pin
Alan Balkany10-Jan-14 5:21
Alan Balkany10-Jan-14 5:21 
GeneralRe: a real problem i been facing in release mode Pin
jone2013214-Jan-14 7:22
jone2013214-Jan-14 7:22 
AnswerRe: a real problem i been facing in release mode Pin
jschell12-Jan-14 9:00
jschell12-Jan-14 9:00 
GeneralRe: a real problem i been facing in release mode Pin
jone2013214-Jan-14 7:25
jone2013214-Jan-14 7:25 
QuestionFile time issue Pin
_Flaviu7-Jan-14 0:55
_Flaviu7-Jan-14 0:55 
AnswerRe: File time issue Pin
Richard MacCutchan7-Jan-14 2:53
mveRichard MacCutchan7-Jan-14 2:53 
AnswerRe: File time issue Pin
Jochen Arndt7-Jan-14 3:02
professionalJochen Arndt7-Jan-14 3:02 
GeneralRe: File time issue Pin
_Flaviu7-Jan-14 21:45
_Flaviu7-Jan-14 21:45 
GeneralRe: File time issue Pin
Richard MacCutchan7-Jan-14 22:06
mveRichard MacCutchan7-Jan-14 22:06 
GeneralRe: File time issue Pin
Jochen Arndt7-Jan-14 22:39
professionalJochen Arndt7-Jan-14 22:39 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:14
_Flaviu8-Jan-14 1:14 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 1:33
professionalJochen Arndt8-Jan-14 1:33 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:44
_Flaviu8-Jan-14 1:44 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 2:13
professionalJochen Arndt8-Jan-14 2:13 
GeneralRe: File time issue [solved] Pin
_Flaviu9-Jan-14 2:11
_Flaviu9-Jan-14 2:11 
GeneralRe: File time issue [solved] Pin
Jochen Arndt9-Jan-14 3:30
professionalJochen Arndt9-Jan-14 3:30 
QuestionIncrement and Decrement Operators Pin
tgsb6-Jan-14 20:57
tgsb6-Jan-14 20:57 
AnswerRe: Increment and Decrement Operators PinPopular
Richard MacCutchan6-Jan-14 22:00
mveRichard MacCutchan6-Jan-14 22:00 
GeneralRe: Increment and Decrement Operators Pin
Suk@nta7-Jan-14 0:27
Suk@nta7-Jan-14 0:27 
hey i want to rectify Message send by Richard MacCutchan

C#
int i = 10;
int result;
result = i++;  // result equals 10, i equals 11
result = ++i;  // result equals 12, i equals 12
result = i--;  // result equals 12, i equals 11
result = --i;  // result equals 10, i equals 10

// note do not use expressions such as
result = ++i + i++; // results undefined


As written the last line gives output undefine i think its wrong .it will give correct output as 23.
If u had checked then u already got the result.
here i will explan u how it's work..

1:from left to right ++i changes i values 10 to 11.
2:then it will add 11 + 11 (as i++ is post increment operator it will execute after expression execution) and gives result as 22
3: then i values becomes 22 and i++ will going to execute and i value changes to 22+1=23
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 0:35
mveRichard MacCutchan7-Jan-14 0:35 

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.