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
What is the difference between c and c# programming?
How do you declare a variable in c#?
What is class in oops with example in c#?
How can you prevent escaping on backslashes in C# with string definitions?
How we can create an array with non-default values?
What does this keyword mean in c#?
Can a abstract class have a constructor?
What is serialization and deserialization in c# with example?
What is stringreader in c#?
How do I create a delegate/multicastdelegate?
How do I create a single-file assembly?
What is icomparable in c#?
What is enumerable in c#?
What is the difference between Singleton design pattern and Factory design pattern?
What is .cs file in c#?