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
Is unboxing an implicit conversion?
How many kinds of elements an array can have?
What is c# most used for?
How can we set class to be inherited, but prevent the method from being over-ridden?
how background thread access to ui control?
For methods inside the interface why can’t you specify the accessibility modifier?
How do I do a case-insensitive string comparison?
What is readline c#?
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
Can I use parseint?
What is the difference between method overriding and method overloading?
What is the difference between list and array in c#?
What is the difference between int.parse and int.tryparse methods?
How can we sort an array in c#?
Does c# replace c++?