Can we change the size of an array at run time?



Can we change the size of an array at run time?..

Answer / Yogesh Pratap

No, we cannot change the size of an array at runtime in most programming languages. However, some languages like Java provide dynamic arrays that can resize themselves.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

difference between the run time polymorphism and compile time poly morphism and about virtual function.

2 Answers   CybAge, Innowe, TCS, Wipro,


What is data structure and data type?

1 Answers  


What is difference between hashmap and hashset?

1 Answers  


Explain the Complete structure of hashmap along with the basic coding of the hashmap internal implementation.

1 Answers   Expedia,


an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].

1 Answers  


Which is best array or linked list?

1 Answers  


What is a height of a tree?

1 Answers  


What are splay trees?

1 Answers  


State the merit of linked representation of binary trees?

1 Answers  


What exactly is data?

1 Answers  


Explain about the different lists available in the collection?

1 Answers  


What is ds heap sort?

1 Answers  


Categories