--- Thomas Hruska <[EMAIL PROTECTED]> wrote: > praveen kumar wrote: > > 1) how can you increase the size of a dynamically > allocated arrary and > > statically allocated array > > For dynamic allocation using malloc(), use > realloc(). For dynamic > allocation using new, there is no equivalent but you > can use 'new' and > 'delete' to simulate the behavior. > > Static chunks of data are just that...static. You > can't resize them. > > > 2) does mentioning the array name gives the base > address in all the > > contests > > Huh? What contests?
I think the OP meant "contexts" Ray > > You really need to read a few books on C/C++ > programming. For memory > related issues, including pointers, I highly > recommend reading the > chapter on "Memory" in Safe C++ Design Principles, > which is a free > e-book for c-prog members (see the Links section of > the c-prog website). > > -- > Thomas Hruska > CubicleSoft President > Ph: 517-803-4197 > > *NEW* MyTaskFocus 1.0 > Get on task. Stay on task. > > http://www.CubicleSoft.com/MyTaskFocus/ > > ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
