bt even in c++ if we do int a[5];
a=new int[0]; its error..
On Sun, Jun 19, 2011 at 12:59 PM, kumar vr <[email protected]> wrote:
> > how to free memory allocated to an array with new function?
>
> A. a = new int[0];
> Assuming integer Data.
>
>
>
>
> On Sat, Jun 18, 2011 at 2:29 PM, oldman <[email protected]>wrote:
>
>>
>> sorry for needless words in the last letter.
>>
>> On Sat, Jun 18, 2011 at 4:56 PM, oldman <[email protected]>wrote:
>>
>>> you are right unless new and delete are operators rather than functions.
>>>
>>> On Sat, Jun 18, 2011 at 4:54 PM, Dumanshu <[email protected]> wrote:
>>>
>>>> new and delete are functions available in C++ and not in C. m i right?
>>>>
>>>> On Jun 17, 2:34 pm, rohit <[email protected]> wrote:
>>>> > how to free memory allocated to an array with new function?
>>>>
>>>> --
>>>> 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.
>>>>
>>>> elementFont font-family font-sizefont-style font-variant font-weight
>> letter-spacing line-height text-decorationtext-align
>> text-indenttext-transform
>> white-space word-spacing colorBackground bg-attachmentbg-color bg-image
>> bg-position bg-repeatBox widthheight border-top border-rightborder-bottom
>> border-left marginpadding max-height min-heightmax-width
>> min-widthoutline-color
>> outline-style outline-width Positioningposition topbottom rightleft
>> floatdisplay
>> clear z-index Listlist-style-image list-style-type list-style-position
>> Table vertical-alignborder-collapse border-spacing caption-sideempty-cells
>> table-layout Effectstext-shadow -webkit-box-shadow border-radiusOther
>> overflow cursorvisibility
>>
>> --
>> 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.
>>
>
> --
> 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.
>
--
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.