What is the difference between Hash Table and Arrays?

Answers were Sorted based on User's Feedback



What is the difference between Hash Table and Arrays?..

Answer / sey

both hash table and arrays are data structure, but the way
they store data are different. hash table in some way use
array for its implementations so what makes it a hash table
is the design of hash function that map key(value)to the
hash table. the has function has noting to do with the
actual value(key) except to create O(1) hit to access,
insert or delete item.

Is This Answer Correct ?    1 Yes 3 No

What is the difference between Hash Table and Arrays?..

Answer / olivia

One more thing:

When generate a hash table, you don't have to set the
size. When generate an array, the size has to be set.

Hash table can save you space if you don't know how big an
array you may need.

Is This Answer Correct ?    4 Yes 8 No

Post New Answer

More C Sharp Interview Questions

How we can create an array with non-default values?

0 Answers  


What is a dbml?

0 Answers  


What is a base class in C#?

0 Answers   TryTechnicals Pvt Ltd,


What is void in c#?

0 Answers  


why do we use Overloading, Overriding, Boxing, Unboxing, and what is the use of these ?

3 Answers   eXensys,






Difference between value and reference type. What are value types and reference types?

0 Answers  


Does c# support a variable number of arguments?

0 Answers  


What is callback delegate in c#?

0 Answers  


What are collections in c#?

0 Answers  


In c# how to connect crystal report?

2 Answers  


In howmany ways can you deploy an assembly?

0 Answers   Siebel,


1)what is difference between char and varchar in sql server 2005 2) what is composite key and candidate key 3) what is temporary table and derived table 4) how to calculate difference between two dates

1 Answers   Wipro,


Categories