What is the difference between Hash Table and Arrays?

Answer Posted / ravi

a) Hash table store data as name,value pair. while in array
only value is store.

b) to access value from hash table, you need to pass name.
while in array, to access value , you need to pass index number.

c) you can store different type of data in hash table, say
int,string etc. while in array you can store only similar
type of data.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between array and arraylist in c#?

672


What are virtual destructors?

732


What does dbml stand for?

747


What is singleordefault c#?

699


In .NET how can you solve the DLL Hell problem?

883


update data in an xml file which resides in solution itself, using silverlight 4.0

1566


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

791


What is executenonquery c#?

676


What are the properties of c#?

698


Is a c# interface the same as a c++ abstract class?

765


What are circular references? How garbage collection deals with circular references.

738


Can a static class have a constructor c#?

701


What is void in c#?

748


What is xaml in c#?

718


What is console based application?

736