What is the differnce between Array and Hash Table?

Answer Posted / pramodgupta20

1.Array can store same type of data While Hash Table can
store different type of data.

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

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

Is This Answer Correct ?    70 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why array is faster than arraylist in c#?

714


Define multicast delegate in c#?

711


Can I define my own exceptions?

693


Explain about WSDL

833


What is dapper in c#?

641


What are strings in c#?

737


How many static constructors are allowed in a class?

688


What are the benefits of using the aggregate method in linq?

733


Differentiate between object pooling and connection pooling in c#?

780


List the different stages of a thread?

692


What are the basics of c#?

746


What is ienumerable <> in c#?

673


Show us in simple steps to create setup & deployment project for windows application?

721


Can I fly with a loop recorder?

688


What are the 2 broad classifications of data types available in c#?

673