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

Can you pass value types by reference to a method?

522


In c#, what will happen if you do not explicitly provide a constructor for a class?

523


What is the boxing and unboxing in c#?

502


What is iqueryable and ienumerable in c#?

513


What are concrete classes?

491






What is the difference between iqueryable and ienumerable?

461


how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.

1287


Perfect Example Of While And Do-While Loop In C#.Net ?

572


What is the benefit of interface in c#?

477


What are tuples c#?

502


What Is An Interface Class?

560


What is difference between string and string builder?

527


What is _layout cshtml?

487


How do you use nullable?

504


How big is int16?

520