What is the difference between Hash Table and Arrays?

Answer Posted / kalidoss

Basically both are used to store the data,but the array is
the collection same object which is accessed by index or
supscript,but in hash table we can store different type
object like a structure but hastable follows two fields,
one is hash key another one is value.The value will be
fetched from hashtable by hash key but sometime hash key
might be string

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to install or uninstall a windows service?

574


What is the difference between and xml documentation tag?

527


What is difference between .net and c#?

483


What is private in c#?

490


How do I trim a space in c#?

446






What is yield in c#?

504


Describe the overview of clr integration.

501


Is double a decimal?

526


What does console readline do?

481


What are primitive data types in c#?

527


What is difference between private and protected in c#?

499


What is the max value of int32 in c#?

502


What are the different types of assemblies available and their purpose?

511


Does c# provide copy constructor?

583


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

573