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

i have a table named login in mysql database containing (empid,fname,lname,mobno,emailid,usrname,usrpwd) i have 2 textboxes in which i enter my username and pwd..so based on what is entered in those textboxes it should retreive all other details of dat username in the remaining 6 textboxes..i want the code for this...

1 Answers   Royal Enfield,


What is thread and explain states of a thread in c#?

0 Answers  


Why do we overload constructors?

0 Answers  


What is the use of console readline () in c#?

0 Answers  


i have a string aabccefsdss.how can i get the string abcefsd. or write the fallowing string with only character occurrence of once .

1 Answers  


what is inheritance and an example in vb.net and c# of when you might use it?

0 Answers  


How to create events for a control? What is custom events? How to create it?

0 Answers  


Explain the steps to create satellite assembly?

0 Answers  


Will finally block get executed if the exception had not occurred?

2 Answers  


How do you declare an interface in c#?

0 Answers  


What are the Configuration files in .net?

0 Answers  


What is session management in c#?

0 Answers  


Categories