Re: [algogeeks] Re: google interview c testing

2011-06-22 Thread Anika Jain
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 kumarg...@gmail.com wrote: how to free memory allocated to an array with new function? A. a = new int[0]; Assuming integer Data. On Sat, Jun 18,

Re: [algogeeks] Re: google interview c testing

2011-06-19 Thread kumar vr
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 fenghaungyuyi...@gmail.com wrote: sorry for needless words in the last letter. On Sat, Jun 18, 2011 at 4:56 PM, oldman

[algogeeks] Re: google interview c testing

2011-06-18 Thread Dumanshu
new and delete are functions available in C++ and not in C. m i right? On Jun 17, 2:34 pm, rohit rajuljain...@gmail.com 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

Re: [algogeeks] Re: google interview c testing

2011-06-18 Thread oldman
you are right unless new and delete are operators rather than functions. On Sat, Jun 18, 2011 at 4:54 PM, Dumanshu duman...@gmail.com wrote: new and delete are functions available in C++ and not in C. m i right? On Jun 17, 2:34 pm, rohit rajuljain...@gmail.com wrote: how to free memory

Re: [algogeeks] Re: google interview c testing

2011-06-18 Thread saurabh singh
In fact new and delete are not even technically functions,,, On Sat, Jun 18, 2011 at 2:24 PM, Dumanshu duman...@gmail.com wrote: new and delete are functions available in C++ and not in C. m i right? On Jun 17, 2:34 pm, rohit rajuljain...@gmail.com wrote: how to free memory allocated to an

Re: [algogeeks] Re: google interview c testing

2011-06-18 Thread oldman
sorry for needless words in the last letter. On Sat, Jun 18, 2011 at 4:56 PM, oldman fenghaungyuyi...@gmail.com wrote: you are right unless new and delete are operators rather than functions. On Sat, Jun 18, 2011 at 4:54 PM, Dumanshu duman...@gmail.com wrote: new and delete are functions

[algogeeks] Re: google interview c testing

2011-06-17 Thread DK
using: delete[] arrayPointer; -- DK http://twitter.com/divyekapoor http://www.divye.in -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/1C5XEl8FfiYJ. To

Re: [algogeeks] Re: google interview c testing

2011-06-17 Thread rahul
strangegoogle ask these type of question too. On Sat, Jun 18, 2011 at 3:07 AM, DK divyekap...@gmail.com wrote: using: delete[] arrayPointer; -- DK http://twitter.com/divyekapoor http://www.divye.in -- You received this message because you are subscribed to the Google Groups