Thomas Hruska 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.
>   
if you can use 'new' you can use  std::vector.
> 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?
>
> 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).
>
>   



[Non-text portions of this message have been removed]

Reply via email to