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 datareader c#?
What is a callback c#?
Why do we need abstract class?
Can a constructor be static in c#?
What is Web.config?
What are bitwise logical operators?
What is the default scope of a class in c#?
What is an int in c#?
What are reflections in c#?
What is ac callback?
What is the Signification of the "new " keyword in C#? example
Is array passed by reference in c#?
What is the use of protected in c#?
What are sorted lists?
What is array c#?