Can you store multiple data types in System.Array?

Answers were Sorted based on User's Feedback



Can you store multiple data types in System.Array?..

Answer / lalit

We can store multiple data types in an ArrayList but not in
a System.Array.

Is This Answer Correct ?    12 Yes 0 No

Can you store multiple data types in System.Array?..

Answer / guest

No

Is This Answer Correct ?    9 Yes 3 No

Can you store multiple data types in System.Array?..

Answer / raj

yes it is possible.
create an array of objects.

int i = 100;
string s = "hundred";

object [] obj = new object[2];
obj[0] = i;
obj[1] = s;

textbox1.Text = System.Convert.ToInt32(i) + "=" + s.ToString
();

Is This Answer Correct ?    10 Yes 6 No

Can you store multiple data types in System.Array?..

Answer / rakesh

Storing multiple data types in System.Array is not
possible,if u want to store multiple data type means use
ArrayList.It is auto expandable too

Is This Answer Correct ?    6 Yes 2 No

Can you store multiple data types in System.Array?..

Answer / ramu

If you want to store multiple data types use Hashtable.
In array you cannot store multiple data types.

Is This Answer Correct ?    3 Yes 1 No

Can you store multiple data types in System.Array?..

Answer / mukkamalla prasastha

No It is not at all possible

Is This Answer Correct ?    2 Yes 3 No

Can you store multiple data types in System.Array?..

Answer / sam

yes we can store multiple data type in system.Arry but the problem is when we retrieve the data then...

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More C Sharp Interview Questions

What is difference between overloading and short circuiting?

0 Answers  


Why is it important to override gethashcode when equals method is overridden?

0 Answers  


What is this keyword in C#?

0 Answers  


What is difference between web and window application?

0 Answers  


Is there any way to access private memebers of an object from another object?

4 Answers   TCS,






Define using statement in c#?

0 Answers  


What is the difference between array and arraylist c#?

0 Answers  


What is early binding and late binding

12 Answers   ABC, Infosys, TATA,


how many catch we can write in thye program?

2 Answers  


Why do I get a "cs5001: does not have an entry point defined" error when compiling?

0 Answers  


What is the base class for array types?

0 Answers  


Can we make a Static Constructor Parameterized? Give Reason with your answer

0 Answers  


Categories