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

How is method overriding different from overloading?

552


Can you create an instance of a static class?

548


What is the best dependency injection c#?

464


How to put assembly in gac?

540


What is the use of the dispose method in C# ?

539






What is stringreader in c#?

482


In gridview in editmode if we want to display information in one combobox based on

1813


Explain About friend and Protected friend

515


Is c# a keyword?

489


How do we achieve encapsulation in c#?

475


What are the types of serialization?

506


What is private protected in c#?

492


What is firstordefault c#?

532


What is dataadapter c#?

476


What is cls, cts and clr in net?

482