heap memory is allocated using new/malloc. memory from stack is allocated for local variables/objects for a function. Correct me if I am wrong.
On Aug 31, 6:37 pm, ravi maggon <[email protected]> wrote: > What memory is allocated to a function, to a variable, to a object created > at run time using new or malloc and to a function containing a object with > run time memory allocation. > > -- > > Regards > Ravi Maggon > Final Year, B.E. CSE > Thapar University -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
