when to allocate memory in heap by using "new".
what will be advantage of allocating memory in heap rather than stack.
if a clear explanation is provided then the memory leaks would be arrested while programming itself
when to allocate memory in heapMemory management
Page 1 of 1
3 Replies - 1133 Views - Last Post: 24 June 2009 - 10:46 AM
Replies To: when to allocate memory in heap
#2
Re: when to allocate memory in heap
Posted 24 June 2009 - 08:38 AM
#3
Re: when to allocate memory in heap
Posted 24 June 2009 - 08:44 AM
Dantheman, on 24 Jun, 2009 - 07:38 AM, said:
looks more like a question on an exam to tell you the honest truth, but yeah, we can't do the work for you. you have to show us some effort so in that case i would have to say
void yourAnswer(){
while(0==0){
cout<<"So what seems to be the problem..."<<endl;
cout<<"We here at DIC don't do your work for you..."<<endl;
cout<<"We only help with code presented..."<<endl;
cout<<"Please edit your post with your code and specific question..."<<endl;
cout<<"Thank you..."<<endl;
}
}
[rules][/rules]
#4
Re: when to allocate memory in heap
Posted 24 June 2009 - 10:46 AM
To get these guys to answer your question you have to tell us what you think. No one will do your homework, but they will help you get it right.
Even if it is not homework doing a little google search and writing a few thoughts along with the questions will let people know that you are thinking on your own about the ideas.
Even if it is not homework doing a little google search and writing a few thoughts along with the questions will let people know that you are thinking on your own about the ideas.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|