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 a scope in c#?
What is the advantage of static class in c#?
What is the use of regex in c#?
So what makes your code really object-oriented #?
What is difference between static and readonly in c#?
What is difference between constants and readonly in c#?
Can you pass value types by reference to a method?
What is hashtable c#?
Can we have two main methods in c#?
Explain dataset.acceptchanges method in .net?
What is oledb in c#?
What is default value of enum c#?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
What is sorted list in c#?
What do you mean by streamreader/streamwriter class in c#?