Can you store multiple data types in System.Array?
Answer Posted / neeraj kumar shrivastwa
If you take an array of object, you can store multiple data
type in an array.
object[] obj = new object[4];
obj[0]=1;
obj[1]="Neeraj";
obj[2]=true;
obj[3]=System.DateTime.Now;
| Is This Answer Correct ? | 53 Yes | 5 No |
Post New Answer View All Answers
Are tuples immutable c#?
What is a Managed Code??
What is interface c#?
Why do we need encapsulation in c#?
What is the use of console application in c#?
Can constructor be protected?
What is enumerable in c#?
What are the features of c#?
Explain how can I get around scope problems in a try/catch?
What do you mean by saying a "struct is a value type"?
What is the difference between an implicit conversion and an explicit conversion?
What is method overriding in c#
Is xml tags are case sensitive?
What is difference between list and ilist in c#?
What are static and dynamic variables?