What is the difference between Hash Table and Arrays?

Answer Posted / kanan

Following are some diff.

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

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

3) 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.

correct me if i am wrong.

Is This Answer Correct ?    27 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is list array in c#?

669


Explain the difference between and xml documentation tag?

708


What is the difference between int.parse and int.tryparse methods?

784


What is difference between il and dll ?

763


What are c# attributes and its significance?

736


What is access modifier in c#?

699


What is the name of c# compiler?

875


Can we inherit abstract class in c#?

729


How do you prevent a class from being inherited in c#?

658


What is datetime parse in c#?

742


Are c# references the same as c++ references?

779


What are c# collections?

703


What is dbml file in c#?

789


Why we use get and set method in c#?

721


What is the use of convert toint32 in c#?

742