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 the symbol used for in c#?

497


Is null c# operator?

547


List some of the classes used by system.data namespace?

452


Can abstract class instantiated c#?

506


What is option parameter in C#?

559






What do you mean by saying a "struct is a value type"?

522


What is the difference between asp net and c#?

493


Can you have parameters for static constructors?

541


What are the 3 types of comments in c#?

523


what are nullable types in c#

524


Which framework is best for desktop application?

526


What is dbcontext c#?

486


What is the default value of guid in c#?

474


Is visual c# free?

507


Explain async and await?

540