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
What is querystring in c#?
Can struct inherit from class c#?
What is console based application?
How do you sort an array in c#?
What is field in c#?
What is the keyword used to prevent a class from being inherited by another class?
What is the use of console readkey in c#?
what is boxing and unboxing?can we initialize unboxing directly?
What is the difference between add and addrange in c#?
what is collections in .net? why we use?
Can we customize the serialization process?
You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?
When To use HashTable In C#
Explain about accessibility modifier 'protected internal'?
What is an indexer in c#?