I want to know about dynamic array where could I get to know about this. Some online help or reference or explanation in this discussion would be helpful.
I want to know about dynamic array where could I get to know about this. Some online help or reference or explanation in this discussion would be helpful.
A dynamic array, growable array, resizable array, dynamic table, or array list is a data structure, an array which is automatically expanded to accommodate new objects if filled beyond its current size. It may also automatically deallocate some of its unused space to save memory.
The post from SriRamKrishna is a direct rip off from Wikipedia!!! There has got to be some control over direct copy-paste from other websites! In most of the tech forums I visit, direct copy-paste is considered disgraceful! Moderators, Is there any such rule placed here in GeekInterview?
Here's the link to Wiki for the topic
Dynamic array - Wikipedia, the free encyclopedia
kalayama, Hope you have not read the question asked by nancyphilips. She has asked some online help or reference and so in this case the link placed by you and message placed by me is helpful and is relevant to the reference asked in question.Also I have placed definition of dynamic array which cannot be changed in any sense.
Sorry if I have hurt your feelings SriramKrishna. I didn't mean to be as sloppish as I sound there.
I agree what we post here should help the one who asks the question. When we do copy something from somewhere else, we should put it as Quote. (Which means, whetever we have written here is not original from us, but we got it from some other refference.
Now, most of the times forums restrict such things. (Writing something against our name which originally belongs to someone else.)
(I don't know the rules of this Forum as I'm relatively new here) According to me, you should have posted it as
I am really sorry if you interpreted my previous post in any other way. I was used to this kind of convention and couldn't help commenting.A dynamic array, growable array, resizable array, dynamic table, or array list is a data structure, an array which is automatically expanded to accommodate new objects if filled beyond its current size. It may also automatically deallocate some of its unused space to save memory.
Hurting your feelings was never my intension. I just wanted things to be better. Some value addition...
kalayama you have not hurt my feelings. YOu are right that one must not take copy others and even in this forum the rules are followed. But the above is a definition and you would find this same definition and same words not only with the site you gave as reference but in many sites.Definitions cannot be changed. That is the whole context.
Ok Sri. May be I overreacted. (I just ran a google search agin, couldn't find any duplicates yet )
But may be what you say is right in this case. Guess things are clear now. Good to know that even in this forum, there is a check for copying
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
It gives many references but the point is not that, the point is definitions cannot be changed. Anyway good to know that you have got the point. It is one of the best forums many users find it useful and naturally it would have all features of good forums in it undoubtfully.
Dynamic array:
- it means that add array blocks at the run time.
- this is achieved by using malloc,calloc,realloc and free in c.
- in c++ we use new and delete.