Can you store multiple data types in System.Array?
Answer Posted / shamjeet
yes,ofcourse
System.Array is of Object Type
eg:
int a =10;
float b=2.03;
string c = "yes"
object[] val = new object[3];
val[0] = a;
val[1] = b;
val[2] = c;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain nullable types in c#?
What is monitor in C#?
What is anonymous methods in c#?
Is c# or c++ better for games?
Why we use get and set property in c#?
What is window application in c#?
What is difference between ienumerable and iqueryable in c#?
Explain about Error handling and how this is done
What are the main reasons to use c# language?
Which is faster hashtable or dictionary?
What exactly happens when we debug and build the program?
What is expression c#?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
What is helper method in c#?
What do you mean by abstract class in c#?