Click here to Skip to main content
15,508,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: [Win32]Scroll bitmap Pin
Mark Salsbery10-Jun-11 17:44
Mark Salsbery10-Jun-11 17:44 
Question[Win32] Threads communication Pin
Member 296547110-Jun-11 13:45
Member 296547110-Jun-11 13:45 
AnswerRe: [Win32] Threads communication Pin
Albert Holguin10-Jun-11 14:31
professionalAlbert Holguin10-Jun-11 14:31 
AnswerRe: [Win32] Threads communication Pin
lijiantao11-Jun-11 6:32
lijiantao11-Jun-11 6:32 
QuestionMFC Multiple document types in SDI application Pin
Mattias G10-Jun-11 1:55
Mattias G10-Jun-11 1:55 
QuestionDebugging application minidump using windbg Pin
Prasann Mayekar10-Jun-11 0:04
Prasann Mayekar10-Jun-11 0:04 
AnswerRe: Debugging application minidump using windbg Pin
Sarath C10-Jun-11 3:27
Sarath C10-Jun-11 3:27 
QuestionC++ expression evaluation. Pin
Sameerkumar Namdeo9-Jun-11 23:57
Sameerkumar Namdeo9-Jun-11 23:57 
Hello,

consider the following program

void main()
{
int tr = 0;
int rows = 256;
int ms = 3;
tr += (rows & (1 << (ms - 1))) << (ms - 1);
tr = rows & (~(1 << ms)); 
}


in above program have used only 3 integers...so can we consider that this program's memory requirement will be 3 integers (3*4 bytes).
or the compiler will generate some intermediate integers for storing values of expressions like
(~(1 << ms)) etc... and thus the memory requirements of this program will be more than 3 integers.

i know it all depends upon how the compiler generates the code.
but wanted to know the relation (w.r.t memory) between the variables declared and the intermediate expressions.

Or you may please direct me to appropriate resources (forums, links)for this..

Thanks.

AnswerRe: C++ expression evaluation. Pin
CPallini10-Jun-11 1:25
mveCPallini10-Jun-11 1:25 
AnswerRe: C++ expression evaluation. Pin
Luc Pattyn10-Jun-11 2:03
sitebuilderLuc Pattyn10-Jun-11 2:03 
AnswerRe: C++ expression evaluation. Pin
Sameerkumar Namdeo12-Jun-11 21:39
Sameerkumar Namdeo12-Jun-11 21:39 
AnswerRe: C++ expression evaluation. Pin
Niklas L12-Jun-11 22:26
Niklas L12-Jun-11 22:26 
Questioninternationalisation Pin
Kyudos9-Jun-11 13:52
Kyudos9-Jun-11 13:52 
AnswerRe: internationalisation Pin
Sameerkumar Namdeo10-Jun-11 0:08
Sameerkumar Namdeo10-Jun-11 0:08 
GeneralRe: internationalisation Pin
Mattias G10-Jun-11 0:26
Mattias G10-Jun-11 0:26 
GeneralRe: internationalisation Pin
Kyudos12-Jun-11 11:56
Kyudos12-Jun-11 11:56 
AnswerRe: internationalisation Pin
jschell10-Jun-11 13:47
jschell10-Jun-11 13:47 
AnswerRe: internationalisation Pin
Abhi Lahare13-Jun-11 7:49
Abhi Lahare13-Jun-11 7:49 
GeneralRe: internationalisation Pin
Kyudos14-Jun-11 11:50
Kyudos14-Jun-11 11:50 
GeneralRe: internationalisation Pin
Abhi Lahare14-Jun-11 12:29
Abhi Lahare14-Jun-11 12:29 
QuestionWant to find Rightmost top point from the CPoint List Pin
Abhijit_Satpute9-Jun-11 9:27
Abhijit_Satpute9-Jun-11 9:27 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
MicroVirus9-Jun-11 11:03
MicroVirus9-Jun-11 11:03 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
Richard MacCutchan9-Jun-11 11:32
mveRichard MacCutchan9-Jun-11 11:32 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
CPallini9-Jun-11 23:09
mveCPallini9-Jun-11 23:09 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
Stefan_Lang15-Jun-11 3:46
mveStefan_Lang15-Jun-11 3: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.