Click here to Skip to main content
15,924,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: simple Question [edited] Pin
toxcct5-Sep-05 0:05
toxcct5-Sep-05 0:05 
AnswerRe: simple Question Pin
ThatsAlok5-Sep-05 0:06
ThatsAlok5-Sep-05 0:06 
JokeRe: simple Question Pin
G Haranadh5-Sep-05 0:32
G Haranadh5-Sep-05 0:32 
JokeRe: simple Question Pin
ThatsAlok5-Sep-05 0:35
ThatsAlok5-Sep-05 0:35 
JokeRe: simple Question Pin
toxcct5-Sep-05 1:07
toxcct5-Sep-05 1:07 
GeneralRe: simple Question Pin
kakan5-Sep-05 0:36
professionalkakan5-Sep-05 0:36 
AnswerRe: simple Question Pin
ThatsAlok5-Sep-05 1:12
ThatsAlok5-Sep-05 1:12 
GeneralRe: simple Question Pin
kakan5-Sep-05 1:35
professionalkakan5-Sep-05 1:35 
Yes, the stack variables will be cleaned, that's true. But the variable i will be recreated for every iteration of the loop.
That's why i beleive that the variable i will occupy the same memory address of the stack for every iteration.
It's the compilers task to handle the stack, depending on calling convention etc., not the OS.

BTW, the stack isn't cleaned or allocated (except when the process/thread starts and exits). So i think 'cleaned' isn't very appropriate. Referenced/dereferenced is better, in my opinion.

Pls do correct me if I'm wrong.
AnswerRe: simple Question Pin
ThatsAlok5-Sep-05 3:12
ThatsAlok5-Sep-05 3:12 
AnswerRe: simple Question Pin
Marc Soleda5-Sep-05 0:09
Marc Soleda5-Sep-05 0:09 
AnswerRe: simple Question Pin
Eytukan5-Sep-05 0:46
Eytukan5-Sep-05 0:46 
AnswerRe: simple Question Pin
Gary R. Wheeler5-Sep-05 5:47
Gary R. Wheeler5-Sep-05 5:47 
QuestionHow to use CByteArray to store and retrieve unsigned char data Pin
snprani4-Sep-05 23:16
snprani4-Sep-05 23:16 
AnswerRe: How to use CByteArray to store and retrieve unsigned char data Pin
ThatsAlok4-Sep-05 23:50
ThatsAlok4-Sep-05 23:50 
Questionhandwolf@126.com Pin
superhandwolf4-Sep-05 23:05
superhandwolf4-Sep-05 23:05 
AnswerRe: handwolf@126.com Pin
toxcct4-Sep-05 23:15
toxcct4-Sep-05 23:15 
GeneralRe: handwolf@126.com Pin
handwolf824-Sep-05 23:30
handwolf824-Sep-05 23:30 
QuestionRe: handwolf@126.com Pin
toxcct4-Sep-05 23:33
toxcct4-Sep-05 23:33 
AnswerRe: handwolf@126.com Pin
superhandwolf5-Sep-05 1:11
superhandwolf5-Sep-05 1:11 
GeneralRe: handwolf@126.com Pin
superhandwolf5-Sep-05 3:19
superhandwolf5-Sep-05 3:19 
AnswerRe: handwolf@126.com Pin
Gary R. Wheeler5-Sep-05 4:24
Gary R. Wheeler5-Sep-05 4:24 
QuestionHow to properly stop STA thread Pin
ComplexLifeForm4-Sep-05 23:03
ComplexLifeForm4-Sep-05 23:03 
AnswerRe: How to properly stop STA thread Pin
MailtoGops5-Sep-05 4:08
MailtoGops5-Sep-05 4:08 
GeneralRe: How to properly stop STA thread Pin
ComplexLifeForm5-Sep-05 7:06
ComplexLifeForm5-Sep-05 7:06 
Questionproblem at run time window Pin
a_david1234-Sep-05 22:57
a_david1234-Sep-05 22:57 

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.