What is the difference between Hash Table and Arrays?

Answer Posted / navin chandra pandit

Hash table & Arrays both are collection but the main diff. is
that- Hash Table follows hashing technique, means it has two
parts-one is hash code while second is value corresponds to
the hash code. To access a value from hash table, we use the
hash code. While array has only value part. To access a
value from array, we use index no. generally.

Is This Answer Correct ?    42 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is func delegate in c#?

734


What is ienumerable t in c#?

646


I want to print "Hello" even before main() is executed. How will you achieve that?

715


Write a C# program to find the Factorial of n

754


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

1304


What is the difference between yield and return?

647


How many bytes is a long c#?

676


What are anonymous functions in c#?

714


Why would you use untrusted verification?

718


Explain about multithreading?

762


What is a delegate? How can it works?

744


What are console applications used for?

697


What are cshtml files?

669


What is the purpose of the integer parse method the decimal parse method?

784


What are the properties of a string class?

707