What is the differnce between Array and Hash Table?

Answer Posted / pramodgupta20

1.Array can store same type of data While Hash Table can
store different type of data.

2) Hash table store data as name,value pair. while in array
only value is store.

3) to access value from hash table, you need to pass name.
while in array, to access value , you need to pass index
number.

Is This Answer Correct ?    70 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain About CLS?

540


What is the difference between asp net and c#?

488


What are jagged arrays used for?

476


What exactly happens when we debug and build the program?

2169


Why can't we use a static class instead of singleton?

445






How can you prevent escaping on backslashes in C# with string definitions?

693


How do I declare inout arguments in c#?

529


Is c# used for any core features of windows vista?

513


Why use a singleton instead of static methods?

457


What are actions in c#?

477


Distinguish between continue and break statement?

556


Explain get and set accessor properties?

485


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

532


What is the C# syntax to catch any possible exception?

524


How does a while loop work?

469