Click here to Skip to main content
13,836,607 members

C / C++ / MFC

 
GeneralRe: Graphical representation of Data Pin
sree7927-May-18 18:44
membersree7927-May-18 18:44 
Questionvolatile issue - repost Pin
Vaclav_22-May-18 6:24
memberVaclav_22-May-18 6:24 
QuestionRe: volatile issue - repost Pin
Richard MacCutchan22-May-18 9:26
protectorRichard MacCutchan22-May-18 9:26 
AnswerRe: volatile issue - repost Pin
CPallini22-May-18 11:11
mveCPallini22-May-18 11:11 
AnswerRe: volatile issue - repost Pin
leon de boer22-May-18 20:12
memberleon de boer22-May-18 20:12 
GeneralRe: volatile issue - repost Pin
CPallini22-May-18 22:39
mveCPallini22-May-18 22:39 
QuestionRe: volatile issue - repost Pin
CPallini22-May-18 11:11
mveCPallini22-May-18 11:11 
AnswerRe: volatile issue - repost Pin
Vaclav_22-May-18 12:54
memberVaclav_22-May-18 12:54 
<pre lang="c++">
cout << "base " << base << '\n';
cout << "offset " << offset << '\n';
cout << "result " << result << '\n';
</pre>
Please read the OP again.
Here is a repeat.

Base gets set to a pointer, simple , right?
I add an "offset" to it, still pretty straight.
I expect the result pointer to be base plus offset.
It is <b>AS LONG AS NONE</b> of the variables is typed with "volatile" keyword.
GeneralRe: volatile issue - repost Pin
leon de boer22-May-18 16:44
memberleon de boer22-May-18 16:44 
GeneralRe: volatile issue - repost Pin
Vaclav_22-May-18 18:44
memberVaclav_22-May-18 18:44 
GeneralRe: volatile issue - repost Pin
leon de boer22-May-18 19:13
memberleon de boer22-May-18 19:13 
GeneralRe: volatile issue - repost SOLVED Pin
Vaclav_23-May-18 4:17
memberVaclav_23-May-18 4:17 
QuestionRe: volatile issue - repost SOLVED Pin
CPallini23-May-18 4:28
mveCPallini23-May-18 4:28 
GeneralRe: volatile issue - repost SOLVED Pin
Richard MacCutchan23-May-18 4:32
protectorRichard MacCutchan23-May-18 4:32 
GeneralRe: volatile issue - repost SOLVED Pin
Peter_in_278023-May-18 4:44
professionalPeter_in_278023-May-18 4:44 
GeneralRe: volatile issue - repost SOLVED Pin
leon de boer23-May-18 7:55
memberleon de boer23-May-18 7:55 
GeneralRe: volatile issue - repost SOLVED Pin
Vaclav_24-May-18 6:53
memberVaclav_24-May-18 6:53 
GeneralRe: volatile issue - repost SOLVED Pin
supercat931-May-18 13:48
membersupercat931-May-18 13:48 
GeneralRe: volatile issue - repost SOLVED Pin
leon de boer4-Jun-18 22:05
memberleon de boer4-Jun-18 22:05 
GeneralRe: volatile issue - repost SOLVED Pin
supercat98-Jun-18 11:31
membersupercat98-Jun-18 11:31 
QuestionReturn a local 2d Array Pin
kinderu18-May-18 9:59
memberkinderu18-May-18 9:59 
AnswerRe: Return a local 2d Array Pin
Richard MacCutchan18-May-18 10:13
protectorRichard MacCutchan18-May-18 10:13 
GeneralRe: Return a local 2d Array Pin
kinderu18-May-18 10:45
memberkinderu18-May-18 10:45 
GeneralRe: Return a local 2d Array Pin
leon de boer18-May-18 17:34
memberleon de boer18-May-18 17:34 
GeneralRe: Return a local 2d Array Pin
Richard MacCutchan18-May-18 21:46
protectorRichard MacCutchan18-May-18 21:46 

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.


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190114.1 | Last Updated 23 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid