What is the differnce between Array and Hash Table?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mohit jethva
Array can not contain diffrent type of object where in hash table you can store it.
| Is This Answer Correct ? | 15 Yes | 2 No |
Answer / ankit,abhishek
array is the collection of similar datatype while hashtable
is collection of different data type.
| Is This Answer Correct ? | 2 Yes | 0 No |
An Array is a Ref Type? what about the array elements which are value type(int,Float...etc)?
can we assign null value to value type in c#?
12 Answers Idea, Microsoft, Wipro,
Why are local variables stored in stack?
What is the usage of OLE?
What is hashtable in c# with example?
What are the 3 logical operators?
When you inherit a protected class-level variable, who is it available to?
What is an Interface in C#?
0 Answers TryTechnicals Pvt Ltd,
Why do we use Design Pattern in C#?
What is a private class in c#?
Why abstract class is not instantiated in c#?
What are the collection classes ?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)